diff --git a/app/templates/main.html b/app/templates/main.html index 0c5852a8cf6b7dcce9b17b495467dc887b2b8d66..147a525fb8f42b2008223711772365d7f04a0048 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 3ebbbb22534d2aca04f911eb176b12483d21a72a..448ed14c2452232837767463bfb500177d77a079 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