]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/management/commands/send_email_alerts.py
fix to handling of email recipients in subscription lists for questions
[osqa.git] / forum / management / commands / send_email_alerts.py
index 0931ab1cbc53487e7e2d99455f161c6be3f0d50a..20e8a6a85ae33cd5ecac462dc070af70de9b08f2 100644 (file)
@@ -112,7 +112,7 @@ class Command(NoArgsCommand):
                 context['new_questions'] = False
 
             if context['new_users'] or context['activity_in_subscriptions'] or context['new_questions']:
-                send_email(digest_subject, (u.username, u.email), "notifications/digest.html", context, threaded=False)
+                send_email(digest_subject, [(u.username, u.email)], "notifications/digest.html", context, threaded=False)
 
 
     def get_digest_control(self):