Implement converting prices #79

Merged
lukas merged 22 commits from converted_prices into main 2024-11-11 16:36:58 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit cbb1cbaf33 - Show all commits

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(