forked from GithubBackups/healthchecks
Fix the senddeletionnotices command to take into account the new default SMS limit.
This commit is contained in:
parent
c13ec18a27
commit
7db11fa7aa
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user