diff --git a/admidio.py b/admidio.py index 20978aa..c175d9f 100644 --- a/admidio.py +++ b/admidio.py @@ -94,7 +94,7 @@ class Admidio: for row in self.cursor.fetchall(): self.events[row[0]] = event( row[0], row[8], row[4], row[2], row[3], row[5], - row[6], row[7], self) + row[6], row[7], row[1], self) def getMemberFromID(self, user_id): """ diff --git a/event.py b/event.py index 2320136..d958ab3 100644 --- a/event.py +++ b/event.py @@ -3,7 +3,7 @@ from .exceptions import MemberNotFoundException class Event(): def __init__(self, event_id, rol_id, name, start_time, end_time, - description, location, country, admidio): + description, location, country, cat_id, admidio): self.__c = admidio.db.cursor() self.id = event_id self.rol_id = rol_id @@ -13,6 +13,7 @@ class Event(): self.description = description self.location = location self.country = country + self.cat_id = cat_id self.admidio = admidio self.participants = list() self.leaders = list()