From 97902295feb09ce8bc2cd4ef2a0bab5de503d155 Mon Sep 17 00:00:00 2001 From: Dennis Potter Date: Sat, 2 Feb 2019 16:15:17 +0100 Subject: [PATCH] Events are now ordered by date when pulled out of the MySQL DB --- admidio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admidio.py b/admidio.py index 61be7d5..6596e18 100644 --- a/admidio.py +++ b/admidio.py @@ -74,7 +74,8 @@ class Admidio: dat_headline, dat_description, dat_location, dat_country, dat_rol_id FROM {self.prefix}_dates - WHERE dat_begin >'{datestring}'""" + WHERE dat_begin >'{datestring}' + ORDER BY dat_begin""" self.cursor.execute(sql) for row in self.cursor.fetchall():