diff options
-rwxr-xr-x | forum/management/commands/send_email_alerts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forum/management/commands/send_email_alerts.py b/forum/management/commands/send_email_alerts.py index caeac5e8..42a6b3b3 100755 --- a/forum/management/commands/send_email_alerts.py +++ b/forum/management/commands/send_email_alerts.py @@ -201,7 +201,7 @@ class Command(NoArgsCommand): ans_rev = ans_rev.exclude(author=user) meta_data['ans_rev'] = len(ans_rev) - if 0 in (len(q_rev), len(new_ans), len(ans_rev)): + if len(q_rev) + len(new_ans) + len(ans_rev) == 0: meta_data['skip'] = True else: meta_data['skip'] = False |