Flask_terms.py: Fixed mapping of notifcation e-mails to terms with uppercase letters

pull/183/head
Philipp Schmied 2018-02-28 09:19:27 +01:00
parent fd329aaba9
commit b6fcf51309
1 changed files with 27 additions and 28 deletions

View File

@ -332,8 +332,7 @@ def terms_management_action():
# add all valid emails to the set
for email in validNotificationEmails:
r_serv_term.sadd(TrackedTermsNotificationEmailsPrefix_Name + term, email)
print "added " + email + " for " + TrackedTermsNotificationEmailsPrefix_Name + term
r_serv_term.sadd(TrackedTermsNotificationEmailsPrefix_Name + term.lower(), email)
# enable notifications by default
r_serv_term.sadd(TrackedTermsNotificationEnabled_Name, term.lower())