Keep calculate_price_per_game stub
Django CI/CD / test (push) Successful in 24s
Django CI/CD / build-and-push (push) Successful in 2m1s

This commit is contained in:
2026-01-16 12:32:32 +01:00
parent f895dc1265
commit 3801949fdb
+13
View File
@@ -75,3 +75,16 @@ def convert_prices():
floatformat(purchase.price * exchange_rate.rate, 0), floatformat(purchase.price * exchange_rate.rate, 0),
currency_to, currency_to,
) )
def calculate_price_per_game():
"""
This task is deprecated because price_per_game is now a GeneratedField.
It is kept here to prevent errors from lingering scheduled tasks.
"""
try:
from django_q.models import Schedule
Schedule.objects.filter(func="games.tasks.calculate_price_per_game").delete()
except Exception:
pass