Skip to content

Commit 572be1b

Browse files
committed
fix: fix progress_percent calculation
1 parent d8adf2f commit 572be1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crowdprinter/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_context_data(self):
5353
context["all_count"] = all_count
5454
context["done_count"] = done_count
5555
context["progress_percent"] = math.floor(
56-
(done_count / max(1, done_count)) * 100
56+
(done_count / max(1, all_count)) * 100
5757
)
5858
return context
5959

0 commit comments

Comments
 (0)