From a98b4839dd9ecbd59e68bb5370afc31a9762623f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 2 Jan 2024 20:03:59 +0100 Subject: [PATCH] Fix wrong unfinished purchases calculation --- games/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/games/views.py b/games/views.py index 89ad61b..f9ccb98 100644 --- a/games/views.py +++ b/games/views.py @@ -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 )