Fix the senddeletionnotices command to take into account the new default SMS limit.

This commit is contained in:
Pēteris Caune 2019-10-30 22:12:25 +02:00
parent c13ec18a27
commit 7db11fa7aa
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2

View File

@ -30,7 +30,7 @@ class Command(BaseCommand):
# Exclude accounts with the deletion notice already sent # Exclude accounts with the deletion notice already sent
q = q.exclude(deletion_notice_date__gt=year_ago) q = q.exclude(deletion_notice_date__gt=year_ago)
# Exclude paid accounts # Exclude paid accounts
q = q.exclude(sms_limit__gt=0) q = q.exclude(sms_limit__gt=5)
sent = 0 sent = 0
for profile in q: for profile in q: