From 078d45e1d37bfd340d3692d6358ca8ce184e891a Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Sat, 18 Apr 2020 14:03:45 +0200 Subject: [PATCH] =?UTF-8?q?Dob=C5=99ichovice:=20Oprava=20chyby=20p=C5=99i?= =?UTF-8?q?=20p=C5=99ep=C3=ADn=C3=A1n=C3=AD=20hodin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/main.html | 4 ++-- app/zoom.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/main.html b/app/templates/main.html index 0c5852a..147a525 100644 --- a/app/templates/main.html +++ b/app/templates/main.html @@ -12,8 +12,8 @@ <button type=button onclick="document.getElementById('date').stepDown(); document.getElementById('f').requestSubmit()">←</button> <button type=button onclick="document.getElementById('date').stepUp(); document.getElementById('f').requestSubmit()">→</button> <select name=hours> - <option value=1{{ " selected" if g.hours==0 else "" }}>Školní hodiny</option> - <option value=2{{ " selected" if g.hours==1 else "" }}>Celý den</option> + <option value=0{{ " selected" if g.hours==0 else "" }}>Školní hodiny</option> + <option value=1{{ " selected" if g.hours==1 else "" }}>Celý den</option> </select> <input type=submit name=submit value="Odeslat"> </form> diff --git a/app/zoom.py b/app/zoom.py index 3ebbbb2..448ed14 100644 --- a/app/zoom.py +++ b/app/zoom.py @@ -95,7 +95,7 @@ def main_page(): g.dow = dt.strftime("%A") hours_arg = request.args.get("hours", "") - if hours_arg in ["0", "1", "2"]: + if hours_arg in ["0", "1"]: g.hours = int(hours_arg) else: g.hours = 0 -- GitLab