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

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
1 changed files with 2 additions and 1 deletions

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
)