From f0d8bf3152ac98896cd883ed48dc312208aac818 Mon Sep 17 00:00:00 2001 From: Dan Lipert Date: Fri, 6 Sep 2019 00:17:28 +0900 Subject: [PATCH] fix syntax --- app/marketing/management/commands/no_applicants_email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/marketing/management/commands/no_applicants_email.py b/app/marketing/management/commands/no_applicants_email.py index 570962e6808..cfeabd0a1be 100644 --- a/app/marketing/management/commands/no_applicants_email.py +++ b/app/marketing/management/commands/no_applicants_email.py @@ -40,8 +40,8 @@ def handle(self, *args, **options): end_time_7_days = timezone.now() - timezone.timedelta(hours=24 * 8) bounties = Bounty.objects.current().filter( network='mainnet', - (Q(created_on__range=[end_time_3_days, start_time_3_days]) | Q(created_on__range=[end_time_7_days, start_time_7_days])) - idx_status='open', + (Q(created_on__range=[end_time_3_days, start_time_3_days]) | Q(created_on__range=[end_time_7_days, start_time_7_days])), + idx_status='open' ) for bounty in [b for b in bounties if b.no_of_applicants == 0]: