default-hour #14
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue