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>')
def index(hours=None, minutes=None):
""" main and only app """
if not hours:
hours = 17
if hours and not minutes:
minutes = 0
if hours:
if not minutes:
minutes = 0
else:
hours = 17
minutes = 30
data = render_template('beer.html', hours=hours, minutes=minutes)