updated progress bar

This commit is contained in:
2024-12-13 22:15:51 -06:00
parent 0f01cfee09
commit aef6932eac

View File

@@ -19,7 +19,7 @@ def printProgressBar(iteration, total, prefix = '', suffix = '', decimals = 1, l
"""
percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total)))
filledLength = int(length * iteration // total)
bar = fill * filledLength + '-' * (length - filledLength)
bar = fill * filledLength + '|' * (length - filledLength)
print(f'\r{prefix} |{bar}| {percent}% {suffix}', end = printEnd)
# Print New Line on Complete
if iteration == total: