From da006b5919da3c54df0a84c904d958041d2cf91c Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Fri, 25 Oct 2024 12:54:12 -0500 Subject: [PATCH] Fix spaces --- list_torrents.py | 4 ++-- qbt_stats_html.nu | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/list_torrents.py b/list_torrents.py index dec1174..88b4ff4 100755 --- a/list_torrents.py +++ b/list_torrents.py @@ -65,14 +65,14 @@ def print_ssv(): qb = Client("http://localhost:8080/") qb.login() 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: 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}") + print(f"{name} {size} {trackers} {ratio} {uploaded}") if __name__ == "__main__": diff --git a/qbt_stats_html.nu b/qbt_stats_html.nu index c3b72e9..9d663ea 100755 --- a/qbt_stats_html.nu +++ b/qbt_stats_html.nu @@ -8,7 +8,7 @@ let new_head = ( ( /home/jas/admin-scripts/list_torrents.py - | from ssv -m 1 + | from ssv -m 2 | to html | str replace ($old_head) ($new_head) | save -f -r /home/jas/public/html/torrents.html