mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-01 08:03:05 +01:00
Fix print_ssv()
This commit is contained in:
parent
912edc2500
commit
6efc4c19ae
@ -67,7 +67,12 @@ def print_ssv():
|
|||||||
sorted_torrents = sorted(qb.torrents(), key=lambda d: d["name"]) # type: ignore
|
sorted_torrents = sorted(qb.torrents(), key=lambda d: d["name"]) # type: ignore
|
||||||
print("Name Size Trackers Ratio Uploaded")
|
print("Name Size Trackers Ratio Uploaded")
|
||||||
for torrent in sorted_torrents:
|
for torrent in sorted_torrents:
|
||||||
print(f"{torrent["name"]} {human_bytes(int(torrent["total_size"]))} {torrent["trackers_count"]} {torrent["ratio"]} {human_bytes(int(torrent["uploaded"]))}") # type: ignore
|
name = torrent["name"] # type: ignore
|
||||||
|
size = human_bytes(int(torrent["total_size"])) # type: ignore
|
||||||
|
trackers = torrent["trackers_count"] # type: ignore
|
||||||
|
ratio = torrent["ratio"] # type: ignore
|
||||||
|
uploaded = human_bytes(int(torrent["uploaded"])) # type: ignore
|
||||||
|
print(f"{name} {size} {trackers} {ratio} {uploaded}")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user