def create(created_automaton): db_session.merge(created_automaton) db_session.commit()
def import_data(): db_session.add_all(questions) db_session.commit()
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()
def create(user): db_session.add(user) db_session.commit()