Skip to content

Commit bccfa67

Browse files
committed
GH-49: Remove useless done_description
1 parent 4953f86 commit bccfa67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/thumbnails/progress.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ class Progress:
1010
_instance = RichProgress(SpinnerColumn(finished_text="*"),
1111
TextColumn("[white]{task.description}{task.fields[status]}"))
1212

13-
def __init__(self, description, done_description):
13+
def __init__(self, description):
1414
if self._running:
1515
self.task = self._instance.add_task(description, status=" ... [yellow]processing")
16-
self.done_description = done_description
16+
self.description = description
1717

1818
def update(self, description, status=" ... [yellow]processing"):
1919
if self._running:
@@ -37,7 +37,7 @@ def __exit__(self, exc_type, exc_val, _):
3737
self._instance.tasks[self.task].finished_time = 0
3838
if exc_type is not None:
3939
return self.update(exc_val, status=" ... [red]failure")
40-
self.update(self.done_description, status=" ... [green]success")
40+
self.update(self.description, status=" ... [green]success")
4141

4242

4343
def use_progress(func):

0 commit comments

Comments
 (0)