better snytax

pull/225/head
Aevann 2024-03-07 00:26:33 +02:00
parent 35260d840e
commit 13cdc9038c
1 changed files with 1 additions and 3 deletions

View File

@ -35,9 +35,7 @@ def const_initialize():
SNAPPY_KONGS = db.query(Emoji.name).filter(Emoji.kind=="Donkey Kong", Emoji.submitter_id==None, Emoji.nsfw == False).all()
SNAPPY_KONGS = [f':#{x[0]}:' for x in SNAPPY_KONGS]
GIGABOOSTED_HOLES = [x[0] for x in db.query(Hole.name).filter_by(stealth=True)] + ['highrollerclub','countryclub']
if 'chudrama' in GIGABOOSTED_HOLES:
GIGABOOSTED_HOLES.remove('chudrama')
GIGABOOSTED_HOLES = [x[0] for x in db.query(Hole.name).filter(Hole.stealth == True, Hole.name != 'chudrama')] + ['highrollerclub','countryclub']
NSFW_EMOJIS = [x[0] for x in db.query(Emoji.name).filter_by(nsfw=True)]