Fix wrong unfinished purchases calculation
All checks were successful
Django CI/CD / test (push) Successful in 1m10s
Django CI/CD / build-and-push (push) Successful in 1m42s

This commit is contained in:
Lukáš Kucharczyk 2024-01-02 20:03:59 +01:00
parent 1999f13cf2
commit a98b4839dd
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg

View File

@ -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
)