sdf
This commit is contained in:
parent
d55421ef4b
commit
9f038d600a
2 changed files with 0 additions and 5 deletions
|
@ -61,8 +61,6 @@ def check_ban_evade(v):
|
||||||
post.is_banned=True
|
post.is_banned=True
|
||||||
post.ban_reason="ban evasion"
|
post.ban_reason="ban evasion"
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
g.db.flush()
|
|
||||||
|
|
||||||
ma=ModAction(
|
ma=ModAction(
|
||||||
kind="ban_post",
|
kind="ban_post",
|
||||||
|
@ -72,8 +70,6 @@ def check_ban_evade(v):
|
||||||
)
|
)
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
|
|
||||||
g.db.flush()
|
|
||||||
|
|
||||||
for comment in g.db.query(Comment).options(lazyload('*')).filter_by(author_id=v.id).all():
|
for comment in g.db.query(Comment).options(lazyload('*')).filter_by(author_id=v.id).all():
|
||||||
if comment.is_banned:
|
if comment.is_banned:
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -322,7 +322,6 @@ def api_comment(v):
|
||||||
basedguy.basedcount += 1
|
basedguy.basedcount += 1
|
||||||
if pill: basedguy.pills += f"{pill.group(1)}, "
|
if pill: basedguy.pills += f"{pill.group(1)}, "
|
||||||
g.db.add(basedguy)
|
g.db.add(basedguy)
|
||||||
g.db.flush()
|
|
||||||
|
|
||||||
body2 = BASED_MSG.format(username=basedguy.username, basedcount=basedguy.basedcount, pills=basedguy.pills)
|
body2 = BASED_MSG.format(username=basedguy.username, basedcount=basedguy.basedcount, pills=basedguy.pills)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue