Esempio n. 1
0
def insert_offered_trainings(id_slack, team, suggestion):
    session = SQLManager().get_session()
    msg = OfferedTraining(id_slack, team, suggestion)
    session.add(msg)
    session.commit()
    session.close()
Esempio n. 2
0
def insert_user(id_slack, team):
    session = SQLManager().get_session()
    user = User(id_slack, team)
    session.add(user)
    session.commit()
    session.close()