def create(created_automaton):
     db_session.merge(created_automaton)
     db_session.commit()
Ejemplo n.º 2
0
def import_data():
    db_session.add_all(questions)
    db_session.commit()
Ejemplo n.º 3
0
 def delete_by_id(user_id):
     User.query.filter(User.id == user_id).delete()
     db_session.commit()
 def create(test_result):
     db_session.merge(test_result)
     db_session.commit()
Ejemplo n.º 5
0
 def create(user):
     db_session.add(user)
     db_session.commit()