From 7e7d27e64865ace8cfb7486298c7836117fece81 Mon Sep 17 00:00:00 2001 From: "Mr. Bubbles" Date: Wed, 10 Jul 2024 22:22:20 +0200 Subject: [PATCH] Change `Finished` to `Total downloads, fix some typos (#47) Change `Finished downloads` to `Total downloads - fix typos --- src/pyloadapi/cli.py | 8 ++++---- tests/test_cli.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pyloadapi/cli.py b/src/pyloadapi/cli.py index 128ca5e..99ae594 100644 --- a/src/pyloadapi/cli.py +++ b/src/pyloadapi/cli.py @@ -101,10 +101,10 @@ async def _status() -> None: free_space = await api.free_space() click.echo( f"Status:\n" - f" - Active Downloads: {stat['active']}\n" - f" - Items in Queue: {stat['queue']}\n" - f" - Finished Downloads: {stat['total']}\n" - f" - Download Speed: {round((stat['speed'] * 8) / 1000000, 2) } Mbit/s\n" + f" - Active downloads: {stat['active']}\n" + f" - Items in queue: {stat['queue']}\n" + f" - Total downloads: {stat['total']}\n" + f" - Download speed: {round((stat['speed'] * 8) / 1000000, 2) } Mbit/s\n" f" - Free space: {round(free_space / (1024 ** 3), 2)} GiB\n" f" - Reconnect: {'Enabled' if stat['reconnect'] else 'Disabled'}\n" f" - Queue : {'Paused' if stat['pause'] else 'Running'}\n" diff --git a/tests/test_cli.py b/tests/test_cli.py index 494df3d..e1dd549 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -24,10 +24,10 @@ def test_status() -> None: assert result.exit_code == 0 assert result.output == ( "Status:\n" - " - Active Downloads: 10\n" - " - Items in Queue: 5\n" - " - Finished Downloads: 15\n" - " - Download Speed: 80.0 Mbit/s\n" + " - Active downloads: 10\n" + " - Items in queue: 5\n" + " - Total downloads: 15\n" + " - Download speed: 80.0 Mbit/s\n" " - Free space: 100.0 GiB\n" " - Reconnect: Disabled\n" " - Queue : Running\n\n"