Beispiel #1
0
def get_class(number: str, letter: str, subclass: str):
    database = DBAgent()
    tmp = database.get_class(number=number, letter=letter, subclass=subclass)
    database.close()
    return tmp
Beispiel #2
0
def change_parameter(telegram_user_id: str, parameter: str):
    database = DBAgent()
    database.change_parameter(telegram_user_id, parameter)
    database.close()
Beispiel #3
0
def get_classes():
    database = DBAgent()
    tmp = database.get_classes()
    database.close()
    return tmp
Beispiel #4
0
def add_student(**information_about_student):
    database = DBAgent()
    database.add_student(**information_about_student)
    database.close()
Beispiel #5
0
def get_user_classes(telegram_user_id: str):
    database = DBAgent()
    tmp = database.get_parameters_output(telegram_user_id=telegram_user_id)
    database.close()
    tmp = [('10', 'Д', 'ит'), ('10', 'Д', 'у')]
    return tmp
Beispiel #6
0
def get_parameters_output(telegram_user_id: str):
    database = DBAgent()
    tmp = database.get_parameters_output(telegram_user_id=telegram_user_id)
    database.close()
    return tmp
Beispiel #7
0
def get_students():
    database = DBAgent()
    tmp = database.get_students()
    database.close()
    return tmp