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():