remove unnecessary flushes and commits

pull/171/head
Aevann 2023-07-17 20:36:20 +03:00
parent c2d709e9ef
commit d946f9a00d
1 changed files with 0 additions and 4 deletions

View File

@ -62,11 +62,7 @@ def create_orgy(link, title):
orgy = Orgy(title=title, id=0, type = orgy_type, data = data)
g.db.add(orgy)
g.db.flush()
g.db.commit()
def end_orgy():
assert get_orgy()
g.db.query(Orgy).delete()
g.db.flush()
g.db.commit()