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(