From cbb1cbaf33a3b54bdb57a4c2434674f0a88944bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Mon, 11 Nov 2024 00:27:15 +0100 Subject: [PATCH] Move DEMO exclusion a bit higher --- games/views/general.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/views/general.py b/games/views/general.py index 5686a6e..3ca554e 100644 --- a/games/views/general.py +++ b/games/views/general.py @@ -301,7 +301,7 @@ def stats(request: HttpRequest, year: int = 0) -> HttpResponse: this_year_purchases_with_currency = this_year_purchases.select_related("edition") this_year_purchases_without_refunded = this_year_purchases_with_currency.filter( date_refunded=None - ) + ).exclude(ownership_type=Purchase.DEMO) this_year_purchases_refunded = this_year_purchases_with_currency.refunded() this_year_purchases_unfinished_dropped_nondropped = ( @@ -313,7 +313,7 @@ def stats(request: HttpRequest, year: int = 0) -> HttpResponse: this_year_purchases_unfinished = ( this_year_purchases_unfinished_dropped_nondropped.filter( date_dropped__isnull=True - ).exclude(ownership_type=Purchase.DEMO) + ) ) this_year_purchases_dropped = ( this_year_purchases_unfinished_dropped_nondropped.filter(