master
Aevann1 2021-12-17 05:48:44 +02:00
parent 1d115eb9eb
commit ebfb1ea7db
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ def revert_actions(v, username):
item.is_banned = False
g.db.add(item)
users = (x.target_user_id for x in g.db.query(ModAction).filter(ModAction.user_id == user.id, ModAction.created_utc > cutoff, ModAction.kind.in_['shadowban', 'ban_user']).all())
users = (x[0] for x in g.db.query(ModAction.target_user_id).filter(ModAction.user_id == user.id, ModAction.created_utc > cutoff, ModAction.kind.in_(('shadowban', 'ban_user'))).all())
for user in users:
user.shadowbanned = None
user.is_banned = 0