Skip to content

Commit

Permalink
Make a very minor code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Jun 23, 2022
1 parent d4d74ef commit 3d35ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dibs/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def loan_availability(user, barcode):
@dibs.get('/<name:re:(info|about|thankyou)>')
def general_page(name = '/'):
'''Display the welcome page.'''
if name and name in ['info', 'about', 'thankyou']:
if name in ['info', 'about', 'thankyou']:
return page(f'{name}')
else:
return page('info')
Expand Down

0 comments on commit 3d35ee1

Please sign in to comment.