Browse Source

Added dat_cat_id to Event class

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

+ 1
- 1
admidio.py View File

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


+ 2
- 1
event.py View File

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


Loading…
Cancel
Save