Skip to content

Commit

Permalink
Strip empty emails from report receivers list
Browse files Browse the repository at this point in the history
  • Loading branch information
PauloPhagula committed Dec 4, 2017
1 parent d11e61e commit a61fab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mopa/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def cheap_dot_env(path):
OPEN311_PHONE_KEY = os.getenv('OPEN311_PHONE_KEY', 'OPEN311_PHONE_KEY')
UX_SMS_API_KEY = os.getenv('UX_SMS_API_KEY', '')

DAILY_REPORT_TO = map(lambda x: x.strip(), os.getenv('DAILY_REPORT_TO', 'admin@xample.com').rsplit(','))
DAILY_REPORT_CC = map(lambda x: x.strip(), os.getenv('DAILY_REPORT_CC', 'admin@xample.com').rsplit(','))
DAILY_REPORT_TO = filter(None, map(lambda x: x.strip(), os.getenv('DAILY_REPORT_TO', 'admin@xample.com').rsplit(',')))
DAILY_REPORT_CC = filter(None, map(lambda x: x.strip(), os.getenv('DAILY_REPORT_CC', 'admin@xample.com').rsplit(',')))
DAILY_ENQUIRY_REPORT_TO = DAILY_REPORT_CC
WEEKLY_REPORT_TO = DAILY_REPORT_CC

0 comments on commit a61fab2

Please sign in to comment.