fix 500 error

master
Aevann 2024-10-14 13:14:47 +03:00
parent 820904e7a2
commit 2b681b6b79
1 changed files with 8 additions and 0 deletions

View File

@ -71,6 +71,14 @@ def execute_blackjack(v, target, body, kind):
if x in body.lower():
execute = True
t = time.time() - 86400
unshadowbannedcels = [x[0] for x in g.db.query(ModAction.target_user_id).filter(
ModAction.kind == 'unshadowban',
ModAction.created_utc > t,
)]
if v.id in unshadowbannedcels: return
if not execute: return False
if v: