summaryrefslogtreecommitdiffstats
path: root/forum/management
diff options
context:
space:
mode:
Diffstat (limited to 'forum/management')
-rw-r--r--forum/management/__init__.py4
-rw-r--r--forum/management/commands/send_email_alerts.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/forum/management/__init__.py b/forum/management/__init__.py
index 8266592a..b654caaa 100644
--- a/forum/management/__init__.py
+++ b/forum/management/__init__.py
@@ -1,3 +1,3 @@
-from forum.modules import get_modules_script
-
+from forum.modules import get_modules_script
+
get_modules_script('management') \ No newline at end of file
diff --git a/forum/management/commands/send_email_alerts.py b/forum/management/commands/send_email_alerts.py
index 26eb7790..db6c00ac 100644
--- a/forum/management/commands/send_email_alerts.py
+++ b/forum/management/commands/send_email_alerts.py
@@ -57,6 +57,7 @@ class Command(NoArgsCommand):
q_ans = Q_set.filter(answers__author=user)
q_ans.cutoff_time = cutoff_time
elif feed.feed_type == 'q_all':
+
if user.tag_filter_setting == 'ignored':
ignored_tags = Tag.objects.filter(user_selections__reason='bad',user_selections__user=user)
q_all = Q_set.exclude( tags__in=ignored_tags )
@@ -140,7 +141,6 @@ class Command(NoArgsCommand):
output.append(_(string) % {'num':number})
def send_email_alerts(self):
-
#todo: move this to template
for user in User.objects.all():
q_list = self.get_updated_questions_for_user(user)