Move DEMO exclusion a bit higher

This commit is contained in:
Lukáš Kucharczyk 2024-11-11 00:27:15 +01:00
parent 29b71a57cc
commit cbb1cbaf33
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 2 additions and 2 deletions

View File

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