mirror of
https://github.com/9001/copyparty.git
synced 2025-10-04 10:19:21 +02:00
add types, isort, errorhandling
This commit is contained in:
parent
0b6f102436
commit
438384425a
40 changed files with 2597 additions and 1750 deletions
|
@ -58,13 +58,13 @@ class CState(threading.Thread):
|
|||
remotes.append("?")
|
||||
remotes_ok = False
|
||||
|
||||
m = []
|
||||
ta = []
|
||||
for conn, remote in zip(self.cs, remotes):
|
||||
stage = len(conn.st)
|
||||
m.append(f"\033[3{colors[stage]}m{remote}")
|
||||
ta.append(f"\033[3{colors[stage]}m{remote}")
|
||||
|
||||
m = " ".join(m)
|
||||
print(f"{m}\033[0m\n\033[A", end="")
|
||||
t = " ".join(ta)
|
||||
print(f"{t}\033[0m\n\033[A", end="")
|
||||
|
||||
|
||||
def allget(cs, urls):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue