This commit is contained in:
Mr Finchum 2024-12-30 21:08:28 +01:00
parent d273236b36
commit 52135bae5e

View file

@ -34,7 +34,6 @@ class Utilities:
def progress_bar(self, current, total, barsize = 50):
if current > total:
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
progress = int((barsize / total) * current)
rest = barsize - progress