Skip to content

Commit

Permalink
Fix W503 from PEP8-check
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Jul 21, 2020
1 parent 5e709b8 commit 04fd4f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions account/account/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def create_account():
if not all((f['user_name'], f['first_name'], f['last_name'],
f['institution'], f['email'])):
return "Please fill out all required form fields."
elif (len(f['user_name']) > 25
or any((f[x] and len(f[x]) > 40)
for x in ('first_name', 'last_name', 'institution',
'email', 'modeller_key'))):
elif (len(f['user_name']) > 25 or
any((f[x] and len(f[x]) > 40)
for x in ('first_name', 'last_name', 'institution',
'email', 'modeller_key'))):
return "Form field too long."
dbh = saliweb.frontend.get_db()
cur = dbh.cursor()
Expand Down

0 comments on commit 04fd4f7

Please sign in to comment.