stop hanging db transactions

pull/150/head
Aevann 2023-05-16 08:29:42 +03:00
parent cd942c18a2
commit bd2924d2bc
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ def _initialize_marseys(db:scoped_session):
SNAPPY_KONGS = db.query(Emoji.name).filter(Emoji.kind=="Donkey Kong", Emoji.submitter_id==None).all()
SNAPPY_KONGS = [f':#{x[0]}:' for x in SNAPPY_KONGS]
db.commit()
db.close()
def _initialize_snappy_marseys_and_quotes():
global SNAPPY_MARSEYS, SNAPPY_QUOTES