Fix behaviour when specifying only hour
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
ad22413145
commit
6ae863148f
1 changed files with 3 additions and 1 deletions
|
@ -17,8 +17,10 @@ def index(hours=None, minutes=None):
|
||||||
""" main and only app """
|
""" main and only app """
|
||||||
if not hours:
|
if not hours:
|
||||||
hours = 17
|
hours = 17
|
||||||
if not minutes:
|
if hours and not minutes:
|
||||||
minutes = 30
|
minutes = 30
|
||||||
|
else:
|
||||||
|
minutes = 0
|
||||||
|
|
||||||
data = render_template('beer.html', hours=hours, minutes=minutes)
|
data = render_template('beer.html', hours=hours, minutes=minutes)
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Reference in a new issue