Skip to content

Commit

Permalink
added complete function
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-atul committed Jan 10, 2021
1 parent 20212f9 commit cdc2523
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ffpbar/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def display(self, log: str, display_log=False):
elif display_log:
print(log)

def complete(self):
""" Completes the progress bar """
self._bar.update(100)

def __get_progress(self, duration, time):
""" Returns the percent as percentage from duration and time """
duration_in_sec = duration.get_time_in_sec()
Expand Down

0 comments on commit cdc2523

Please sign in to comment.