Fix wrong unfinished purchases calculation
This commit is contained in:
parent
1999f13cf2
commit
a98b4839dd
|
@ -368,7 +368,8 @@ def stats(request, year: int = 0):
|
|||
|
||||
this_year_purchases_unfinished_percent = int(
|
||||
safe_division(
|
||||
this_year_purchases_unfinished.count(), this_year_purchases_refunded.count()
|
||||
this_year_purchases_unfinished.count(),
|
||||
this_year_purchases_without_refunded.count(),
|
||||
)
|
||||
* 100
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue