From 917ff0b84f3ec2289ed0ece740a4fbed952c36b8 Mon Sep 17 00:00:00 2001 From: Daniel Grams Date: Wed, 30 Sep 2020 10:18:41 +0200 Subject: [PATCH] =?UTF-8?q?Infoscreen-HTML:=20Immer=20die=20n=C3=A4chsten?= =?UTF-8?q?=20f=C3=BCnf=20Daten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 6 +++--- templates/widget/infoscreen/read.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index 6b5d8f8..f33f7c5 100644 --- a/app.py +++ b/app.py @@ -2103,9 +2103,9 @@ def widget_event_date(id): def widget_infoscreen(au_short_name): admin_unit = AdminUnit.query.filter(AdminUnit.short_name == au_short_name).first_or_404() - in24hours = now + relativedelta(hours=24) - date_filter = and_(EventDate.start >= now, EventDate.start <= in24hours) - dates = get_event_dates_query_for_admin_unit(admin_unit.id, date_filter).paginate() + #in24hours = now + relativedelta(hours=24) + #date_filter = and_(EventDate.start >= now, EventDate.start <= in24hours) + dates = get_event_dates_query_for_admin_unit(admin_unit.id).paginate(max_per_page=5) return render_template('widget/infoscreen/read.html', admin_unit=admin_unit, diff --git a/templates/widget/infoscreen/read.html b/templates/widget/infoscreen/read.html index e0f5d05..e5547e9 100644 --- a/templates/widget/infoscreen/read.html +++ b/templates/widget/infoscreen/read.html @@ -45,11 +45,11 @@