From 6efc4c19ae9ea68dfe442fc68a7e8a6b697db883 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Fri, 25 Oct 2024 12:39:36 -0500 Subject: [PATCH] Fix print_ssv() --- list_torrents.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/list_torrents.py b/list_torrents.py index 7c35777..dec1174 100755 --- a/list_torrents.py +++ b/list_torrents.py @@ -67,7 +67,12 @@ def print_ssv(): sorted_torrents = sorted(qb.torrents(), key=lambda d: d["name"]) # type: ignore print("Name Size Trackers Ratio Uploaded") 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__":