X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/869a46f8bd98f6f71a5cdd0b8c722b1686fe449c..cf4c6f115a98cb8574c9665f34a50ae503a57b79:/forum/management/commands/send_email_alerts.py diff --git a/forum/management/commands/send_email_alerts.py b/forum/management/commands/send_email_alerts.py index 6f68f2c..4bc9951 100644 --- a/forum/management/commands/send_email_alerts.py +++ b/forum/management/commands/send_email_alerts.py @@ -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())