]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/management/commands/send_email_alerts.py
OSQA-236, now we add a link for the administrators to flagged posts management tool...
[osqa.git] / forum / management / commands / send_email_alerts.py
index 85b83fae6e9be646e61dd266886454e7b4877893..02e2df0b6b4364f45b611c0c830a72366a08b1e6 100644 (file)
@@ -98,6 +98,9 @@ class Command(NoArgsCommand):
 
         new_member_count = new_members.count()
 
+        # The number of the flagged content for the day
+        flagged_count = Flag.objects.all().count()
+
         if new_member_count >= SHOW_N_MORE_ACTIVE_NEW_MEMBERS:
             new_members = new_members[:SHOW_N_MORE_ACTIVE_NEW_MEMBERS]
             show_all_users = True