Fix bug
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

This commit is contained in:
kleph 2020-04-08 21:47:20 +02:00
parent ff0bca9421
commit 9c3d4252d1

View file

@ -15,11 +15,12 @@ app.url_map.strict_slashes = False
@app.route('/<int(min=0, max=23):hours>/<int(min=0, max=59):minutes>') @app.route('/<int(min=0, max=23):hours>/<int(min=0, max=59):minutes>')
def index(hours=None, minutes=None): def index(hours=None, minutes=None):
""" main and only app """ """ main and only app """
if not hours:
hours = 17 if hours:
if hours and not minutes: if not minutes:
minutes = 0 minutes = 0
else: else:
hours = 17
minutes = 30 minutes = 30
data = render_template('beer.html', hours=hours, minutes=minutes) data = render_template('beer.html', hours=hours, minutes=minutes)