Browse Source

Fix date to string in sql

master
Rick 6 years ago
parent
commit
5042caf291
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      event.py
  2. +1
    -1
      group.py

+ 1
- 1
event.py View File

@ -21,7 +21,7 @@ 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}
AND mem_end = 9999-12-31"""
AND mem_end = '9999-12-31'"""
self.__c.execute(sql)
for row in self.__c.fetchall():


+ 1
- 1
group.py View File

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


Loading…
Cancel
Save