From 63b1a6b9ef75c5102534487d9645451e2aff1bd6 Mon Sep 17 00:00:00 2001 From: i701 Date: Sat, 5 Jul 2025 18:05:39 +0500 Subject: [PATCH] =?UTF-8?q?fix(tasks):=20include=20paid=20filter=20in=20ex?= =?UTF-8?q?pired=20topups=20query=20to=20prevent=20notifications=20for=20p?= =?UTF-8?q?aid=20topups=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- billing/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/billing/tasks.py b/billing/tasks.py index 5136c7d..6c26cb1 100644 --- a/billing/tasks.py +++ b/billing/tasks.py @@ -16,7 +16,7 @@ logger = logging.getLogger(__name__) @app.task def update_expired_topups(timestamp: int): expired_topups_qs = Topup.objects.filter( - expires_at__lte=timezone.now(), expiry_notification_sent=False + expires_at__lte=timezone.now(), expiry_notification_sent=False, paid=False ).select_related("user") with transaction.atomic():