fd
This commit is contained in:
parent
9d566937a5
commit
bb384f9e3c
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ def revert_actions(v, username):
|
||||||
item.removed_by = None
|
item.removed_by = None
|
||||||
g.db.add(item)
|
g.db.add(item)
|
||||||
|
|
||||||
users = g.db.query(Submission).options(lazyload('*')).filter_by(is_banned=user.id).all()
|
users = g.db.query(User).options(lazyload('*')).filter_by(is_banned=user.id).all()
|
||||||
for user in users:
|
for user in users:
|
||||||
user.unban()
|
user.unban()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue