From 13cdc9038c878221c1375b517dc9fadbb1c0c579 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 7 Mar 2024 00:26:33 +0200 Subject: [PATCH] better snytax --- files/helpers/const_stateful.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/helpers/const_stateful.py b/files/helpers/const_stateful.py index aedefecc8..d9771017d 100644 --- a/files/helpers/const_stateful.py +++ b/files/helpers/const_stateful.py @@ -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)]