mirror of
https://github.com/JonasunderscoreJones/turbo-octo-potato.git
synced 2025-10-25 19:19:19 +02:00
fixed progress bar overflow
This commit is contained in:
parent
85edae7c3c
commit
fa58cd5893
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ SPOTIPY_REDIRECT_URI = ""
|
|||
LIKEDSONGPLAYLIST_ID = ""
|
||||
|
||||
def progress_bar(current, total, last_time_stamp=time.time()):
|
||||
current = total if current > total else current
|
||||
this_timestamp = time.time()
|
||||
width = os.get_terminal_size().columns
|
||||
progress = round((current/total)*width)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue