Skip to content

Commit 7746052

Browse files
committed
add total
1 parent 745ca1b commit 7746052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/utils/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def add_task(self, task: str, total: int):
417417
Returns:
418418
The task ID.
419419
"""
420-
self.total = total
420+
self.total += total
421421
task_id = TaskID(len(self.tasks))
422422
self.tasks[task_id] = {"total": total, "current": 0}
423423
return task_id

0 commit comments

Comments
 (0)