Fix behaviour when specifying only hour
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kleph 2020-04-08 19:25:29 +02:00
parent ad22413145
commit 6ae863148f

View file

@ -17,8 +17,10 @@ def index(hours=None, minutes=None):
""" main and only app """
if not hours:
hours = 17
if not minutes:
if hours and not minutes:
minutes = 30
else:
minutes = 0
data = render_template('beer.html', hours=hours, minutes=minutes)
return data