Exemple #1
0
def save_model(model):
    print(model.__table__)
    db_session.add(model)
    db_session.commit()
    return model
Exemple #2
0
def delete_word(word):
    db_session.query(Word).filter_by(_word=word).delete()
    db_session.commit()