Skip to content
Browse files

Fix setting name for do-not-send-email to be more consistent.

  • Loading branch information...
1 parent fcf1871 commit 7f4cae1dd5bc8d6bd0e503571d5b4194c3e57e7d @rossp rossp committed Mar 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.rst
  2. +1 −1 app_metrics/reports.py
View
2 README.rst
@@ -81,7 +81,7 @@ Settings
``APP_METRICS_MIXPANEL_URL`` - Allow overriding of the API URL end point
-``METRICS_SEND_ZERO_ACTIVITY`` - Prevent e-amils being sent when there's been
+``APP_METRICS_SEND_ZERO_ACTIVITY`` - Prevent e-mails being sent when there's been
no activity today (i.e. during testing). Defaults to `True`.
TODO
View
2 app_metrics/reports.py
@@ -17,7 +17,7 @@ def generate_report(metric_set=None, html=False):
data['trends'] = trending_for_metric(m)
metric_trends.append(data)
- send_zero_activity = getattr(settings, 'METRICS_SEND_ZERO_ACTIVITY', True)
+ send_zero_activity = getattr(settings, 'APP_METRICS_SEND_ZERO_ACTIVITY', True)
if not send_zero_activity:
activity_today = False

0 comments on commit 7f4cae1

Please sign in to comment.
Something went wrong with that request. Please try again.