diff --git a/admidio.py b/admidio.py index b03c3db..6f0b9e5 100644 --- a/admidio.py +++ b/admidio.py @@ -80,7 +80,7 @@ class Admidio: for row in self.cursor.fetchall(): self.events[row[0]] = event.Event( - self.db, row[0], row[8], row[4], row[2], row[3], row[5], + row[0], row[8], row[4], row[2], row[3], row[5], row[6], row[7], self) def getMemberFromID(self, user_id): diff --git a/event.py b/event.py index 93c2d2e..8ec4887 100644 --- a/event.py +++ b/event.py @@ -2,9 +2,9 @@ from admidio_python_api.exceptions import MemberNotFoundException class Event(): - def __init__(self, db, event_id, rol_id, name, start_time, end_time, + def __init__(self, event_id, rol_id, name, start_time, end_time, description, location, country, admidio): - self.__c = db.cursor() + self.__c = admidio.db.cursor() self.id = event_id self.rol_id = rol_id self.name = name