Browse Source

This fixes the same redundancy which was also described for the Group class in c4ab7b12f6

master
Dennis Potter 6 years ago
parent
commit
eaa46ba42d
Signed by: d.potter GPG Key ID: 186A8AD440942BAF
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      admidio.py
  2. +2
    -2
      event.py

+ 1
- 1
admidio.py View File

@ -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):


+ 2
- 2
event.py View File

@ -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


Loading…
Cancel
Save