honk
This commit is contained in:
parent
d273236b36
commit
52135bae5e
1 changed files with 0 additions and 1 deletions
|
@ -34,7 +34,6 @@ class Utilities:
|
||||||
def progress_bar(self, current, total, barsize = 50):
|
def progress_bar(self, current, total, barsize = 50):
|
||||||
if current > total:
|
if current > total:
|
||||||
print("\033[91mThis bar has exceeded its limits!\033[0m Maybe the current value needs some restraint?")
|
print("\033[91mThis bar has exceeded its limits!\033[0m Maybe the current value needs some restraint?")
|
||||||
print(f"{(current - total) * '\033[92mHonk, Honk!\033[0m '}")
|
|
||||||
return
|
return
|
||||||
progress = int((barsize / total) * current)
|
progress = int((barsize / total) * current)
|
||||||
rest = barsize - progress
|
rest = barsize - progress
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue