Browse Source

Fix to let it function as a library

master
Rick 5 years ago
parent
commit
97f5907cbf
4 changed files with 7 additions and 7 deletions
  1. +0
    -0
      __init__.py
  2. +5
    -5
      admidio.py
  3. +1
    -1
      event.py
  4. +1
    -1
      group.py

+ 0
- 0
__init__.py View File


+ 5
- 5
admidio.py View File

@ -1,8 +1,8 @@
import MySQLdb
import member
import group
import event
from exceptions import MemberNotFoundException
import admidio_python_api.member as member
import admidio_python_api.group as group
import admidio_python_api.event as event
from admidio_python_api.exceptions import MemberNotFoundException
from datetime import datetime
from dateutil.relativedelta import relativedelta
@ -29,7 +29,7 @@ class Admidio:
sql = f"""SELECT cat_id
FROM {self.prefix}_categories
WHERE cat_name_intern = 'CONFIRMATION_OF_PARTICIPATION'"""
WHERE cat_name_intern = 'EVENTS'"""
self.cursor.execute(sql)
self.event_confirmation_id = self.cursor.fetchone()[0]


+ 1
- 1
event.py View File

@ -1,4 +1,4 @@
from exceptions import MemberNotFoundException
from admidio_python_api.exceptions import MemberNotFoundException
class Event():


+ 1
- 1
group.py View File

@ -1,4 +1,4 @@
from exceptions import MemberNotFoundException
from admidio_python_api.exceptions import MemberNotFoundException
class Group:


Loading…
Cancel
Save