From f19ce23d03aebf8c22364a6c3ac77db4ee1019b3 Mon Sep 17 00:00:00 2001 From: Rick Date: Wed, 30 Jan 2019 23:14:28 +0100 Subject: [PATCH] Update to only include current members in groups --- admidio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admidio.py b/admidio.py index 61be7d5..04ec02e 100644 --- a/admidio.py +++ b/admidio.py @@ -58,7 +58,8 @@ class Admidio: sql = f"""SELECT rol_id, rol_name, rol_description FROM {self.prefix}_roles WHERE rol_valid = 1 - AND rol_cat_id != {self.event_confirmation_id}""" + AND rol_cat_id != {self.event_confirmation_id} + AND mem_end = 9999-12-31""" self.cursor.execute(sql) for row in self.cursor.fetchall():