Skip to content

Commit

Permalink
Change Finished to `Total downloads, fix some typos (#47)
Browse files Browse the repository at this point in the history
Change `Finished downloads` to `Total downloads

- fix typos
  • Loading branch information
tr4nt0r authored Jul 10, 2024
1 parent 3a6afd3 commit 7e7d27e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/pyloadapi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7e7d27e

Please sign in to comment.