default-hour #14

Merged
kleph merged 5 commits from default-hour into master 2020-04-09 00:06:59 +02:00
Showing only changes of commit 6ae863148f - Show all commits

View file

@ -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