From 2a8a636d003bf2ed2c78305433a54af5db759a17 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Tue, 18 Apr 2017 00:28:45 +0200 Subject: [PATCH] Small fixes for using start_time --- server.py | 1 - templates/protocol-show.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server.py b/server.py index 59197bc..b3facfa 100755 --- a/server.py +++ b/server.py @@ -484,7 +484,6 @@ def new_protocol(): flash("Dir fehlen die nötigen Zugriffsrechte.", "alert-error") return redirect(request.args.get("next") or url_for("index")) protocol = Protocol(protocoltype_id=protocoltype.id) - print(form.start_time.data) form.populate_obj(protocol) if form.start_time.data is None: protocol.start_time = protocoltype.usual_time diff --git a/templates/protocol-show.html b/templates/protocol-show.html index 974bc67..2314e88 100644 --- a/templates/protocol-show.html +++ b/templates/protocol-show.html @@ -82,7 +82,7 @@ {% endif %} {% else %} {% if protocol.date is not none %} - <p><strong>Geplant:</strong> {{protocol.date|datify_long}}, {{protocol.start_time|timify}}</p> + <p><strong>Geplant:</strong> {{protocol.date|datify_long}}, {{protocol.get_time()|timify}}</p> {% endif %} {% for meta in protocol.metas %} <p><strong>{{meta.name}}:</strong> {{meta.value}}</p> -- GitLab