Skip to content

Commit

Permalink
fixed query for signup notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonf committed Dec 20, 2024
1 parent 211983f commit 4f6dca8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lab/signups/management/commands/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class Command(BaseCommand):
def handle(self, *args, **options):
# fetch new signups from the last 7 days
threshold = datetime.now() - timedelta(days=7)
new_signups = Signup.objects.filter(status=Signup.Status.NEW, created__gte=threshold).count()
new_signups = (
Signup.objects.filter(status=Signup.Status.NEW, created__gte=threshold).exclude(email_verified=None).count()
)
total_waiting = Signup.objects.filter(status=Signup.Status.NEW).exclude(email_verified=None).count()
unverified = Signup.objects.filter(status=Signup.Status.NEW, email_verified=None).count()

Expand Down

0 comments on commit 4f6dca8

Please sign in to comment.