refactored some functions

This commit is contained in:
Ozzie Isaacs
2021-03-21 14:17:07 +01:00
parent e9530eda9d
commit 436f60caa9
2 changed files with 133 additions and 105 deletions

View File

@ -345,7 +345,7 @@ def edit_list_user(param):
else:
log.error(u"Found an existing account for this e-mail address.")
return _(u"Found an existing account for this e-mail address."), 400
elif param =='kindle_mail':
elif param == 'kindle_mail':
user.kindle_mail = vals['value']
elif param == 'role':
if vals['value'] == 'true':