From eaa46ba42dc9c07f15d7af0c96169ce644a010f9 Mon Sep 17 00:00:00 2001 From: Dennis Potter Date: Sat, 2 Feb 2019 16:23:54 +0100 Subject: [PATCH] This fixes the same redundancy which was also described for the Group class in c4ab7b12f653fbcea4507077e20baefe75c79251 --- admidio.py | 2 +- event.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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