]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/management/commands/send_email_alerts.py
Fixes OSQA-406, Validation hash is not reset when email address is changed (enabling...
[osqa.git] / forum / management / commands / send_email_alerts.py
index 6f68f2c3060914ff5ba93added0b52c066123f22..4bc99513de53f6e6fed619ba1349d001c384a231 100644 (file)
@@ -105,6 +105,9 @@ class Command(NoArgsCommand):
 
         digest = DigestQuestionsIndex(from_date)
 
+        if (not new_member_count) and (not digest.count):
+            return
+
         send_template_email(users, "notifications/digest.html", locals())