Browse Source

Fixing previous commit (sql clause at wrong place)

master
Rick 6 years ago
parent
commit
113aa272b3
3 changed files with 5 additions and 4 deletions
  1. +1
    -2
      admidio.py
  2. +2
    -1
      event.py
  3. +2
    -1
      group.py

+ 1
- 2
admidio.py View File

@ -58,8 +58,7 @@ 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 mem_end = 9999-12-31"""
AND rol_cat_id != {self.event_confirmation_id}"""
self.cursor.execute(sql)
for row in self.cursor.fetchall():


+ 2
- 1
event.py View File

@ -20,7 +20,8 @@ class Event():
sql = f"""SELECT mem_usr_id, mem_leader, mem_count_guests
FROM {self.admidio.prefix}_members
WHERE mem_rol_id = {self.rol_id}"""
WHERE mem_rol_id = {self.rol_id}
AND mem_end = 9999-12-31"""
self.__c.execute(sql)
for row in self.__c.fetchall():


+ 2
- 1
group.py View File

@ -11,7 +11,8 @@ class Group:
self.leaders = list()
sql = f"""SELECT mem_usr_id, mem_leader
FROM {self.admidio.prefix}_members
WHERE mem_rol_id = {self.id}"""
WHERE mem_rol_id = {self.id}
AND mem_end = 9999-12-31"""
self.__c.execute(sql)
for row in self.__c.fetchall():


Loading…
Cancel
Save