Пример #1
0
def Seminarcancele(SeminarId):
    seminar = Seminar.query.filter_by(seminar_id=int(SeminarId)).one()
    Eventsystem.remove_all_user(seminar)
    Eventsystem.cancele_all_session(seminar)
    seminar.status = 'CANCELED'
    Eventsystem.add_seminar(seminar)
    return redirect(url_for('index'))
Пример #2
0
def Sessioncancele(sessionId):
    session = Session.query.filter_by(session_id=int(sessionId)).one()
    seminar = Eventsystem.getSeminar(session)
    Eventsystem.remove_session_user(session, seminar)
    Eventsystem.remove_all_user(session)
    session.status = 'CANCELED'
    Eventsystem.add_session(session)
    return redirect(url_for('index'))
Пример #3
0
def cancele(eventId):
    event = Event.query.filter_by(event_id=int(eventId)).one()
    Eventsystem.remove_all_user(event)
    event.status = 'CANCELED'
    Eventsystem.add_course(event)
    return redirect(url_for('index'))