From 61bfac637f85933477a576100a93a7245cc8950c Mon Sep 17 00:00:00 2001 From: Dennis Potter Date: Sat, 2 Feb 2019 18:47:13 +0100 Subject: [PATCH] Added dat_cat_id to Event class --- admidio.py | 2 +- event.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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()