From 9c3d4252d1d32e3dd675d9e2738081aeaff7aa9a Mon Sep 17 00:00:00 2001 From: kleph Date: Wed, 8 Apr 2020 21:47:20 +0200 Subject: [PATCH] Fix bug --- beer/beer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/beer/beer.py b/beer/beer.py index 4f0b0ac..ae3ddb8 100755 --- a/beer/beer.py +++ b/beer/beer.py @@ -15,11 +15,12 @@ app.url_map.strict_slashes = False @app.route('//') 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)