Skip to content

Commit

Permalink
fix: fix progress_percent calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jadyndev committed Dec 22, 2024
1 parent d8adf2f commit 572be1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crowdprinter/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_context_data(self):
context["all_count"] = all_count
context["done_count"] = done_count
context["progress_percent"] = math.floor(
(done_count / max(1, done_count)) * 100
(done_count / max(1, all_count)) * 100
)
return context

Expand Down

0 comments on commit 572be1b

Please sign in to comment.