Implement converting prices #79
|
@ -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_with_currency = this_year_purchases.select_related("edition")
|
||||||
this_year_purchases_without_refunded = this_year_purchases_with_currency.filter(
|
this_year_purchases_without_refunded = this_year_purchases_with_currency.filter(
|
||||||
date_refunded=None
|
date_refunded=None
|
||||||
)
|
).exclude(ownership_type=Purchase.DEMO)
|
||||||
this_year_purchases_refunded = this_year_purchases_with_currency.refunded()
|
this_year_purchases_refunded = this_year_purchases_with_currency.refunded()
|
||||||
|
|
||||||
this_year_purchases_unfinished_dropped_nondropped = (
|
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 = (
|
||||||
this_year_purchases_unfinished_dropped_nondropped.filter(
|
this_year_purchases_unfinished_dropped_nondropped.filter(
|
||||||
date_dropped__isnull=True
|
date_dropped__isnull=True
|
||||||
).exclude(ownership_type=Purchase.DEMO)
|
)
|
||||||
)
|
)
|
||||||
this_year_purchases_dropped = (
|
this_year_purchases_dropped = (
|
||||||
this_year_purchases_unfinished_dropped_nondropped.filter(
|
this_year_purchases_unfinished_dropped_nondropped.filter(
|
||||||
|
|
Loading…
Reference in New Issue