From a6fd32cb23fd8e3bb75f35b13344855d1da9ade5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 4 Jan 2024 00:09:23 +0200 Subject: [PATCH] fix this https://watchpeopledie.tv/h/music/post/110318/el-leyva-camposcjng-version-narco-rap/2405761#context --- files/helpers/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 0b1830be4..24693b8a1 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -140,7 +140,7 @@ def execute_snappy(post, v): elif body == '!slots': body = f'!slots{snappy.coins}' elif body == '!pinggroup': - group = g.db.query(Group).order_by(func.random()).first() + group = g.db.query(Group).filter(Group.name != 'focusgroup').order_by(func.random()).first() cost = len(group.member_ids) * 5 snappy.charge_account('coins', cost)