Fix: Accidental == when = was intended.
This commit is contained in:
parent
5e3bdaacbf
commit
91a062a08e
1 changed files with 4 additions and 4 deletions
|
@ -1451,7 +1451,7 @@ def admin_nuke_user(v):
|
||||||
if post.state_mod != StateMod.REMOVED:
|
if post.state_mod != StateMod.REMOVED:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
post.state_mod == StateMod.REMOVED
|
post.state_mod = StateMod.REMOVED
|
||||||
post.state_mod_set_by = v.username
|
post.state_mod_set_by = v.username
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
|
@ -1459,7 +1459,7 @@ def admin_nuke_user(v):
|
||||||
if comment.state_mod != StateMod.REMOVED:
|
if comment.state_mod != StateMod.REMOVED:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
comment.state_mod == StateMod.REMOVED
|
comment.state_mod = StateMod.REMOVED
|
||||||
comment.state_mod_set_by = v.username
|
comment.state_mod_set_by = v.username
|
||||||
g.db.add(comment)
|
g.db.add(comment)
|
||||||
|
|
||||||
|
@ -1485,7 +1485,7 @@ def admin_unnuke_user(v):
|
||||||
if post.state_mod == StateMod.VISIBLE:
|
if post.state_mod == StateMod.VISIBLE:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
post.state_mod == StateMod.VISIBLE
|
post.state_mod = StateMod.VISIBLE
|
||||||
post.state_mod_set_by = v.username
|
post.state_mod_set_by = v.username
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
|
@ -1493,7 +1493,7 @@ def admin_unnuke_user(v):
|
||||||
if comment.state_mod == StateMod.VISIBLE:
|
if comment.state_mod == StateMod.VISIBLE:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
comment.state_mod == StateMod.VISIBLE
|
comment.state_mod = StateMod.VISIBLE
|
||||||
comment.state_mod_set_by = v.username
|
comment.state_mod_set_by = v.username
|
||||||
g.db.add(comment)
|
g.db.add(comment)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue