forked from rDrama/rDrama
sfd
parent
5fddfae64c
commit
7ddd5ec76a
|
@ -700,7 +700,6 @@ def edit_comment(cid, v):
|
||||||
if v.agendaposter and not v.marseyawarded:
|
if v.agendaposter and not v.marseyawarded:
|
||||||
body = torture_ap(body, v.username)
|
body = torture_ap(body, v.username)
|
||||||
|
|
||||||
if not c.options:
|
|
||||||
for i in poll_regex.finditer(body):
|
for i in poll_regex.finditer(body):
|
||||||
body = body.replace(i.group(0), "")
|
body = body.replace(i.group(0), "")
|
||||||
c_option = Comment(author_id=AUTOPOLLER_ID,
|
c_option = Comment(author_id=AUTOPOLLER_ID,
|
||||||
|
@ -713,7 +712,6 @@ def edit_comment(cid, v):
|
||||||
)
|
)
|
||||||
g.db.add(c_option)
|
g.db.add(c_option)
|
||||||
|
|
||||||
if not c.choices:
|
|
||||||
for i in choice_regex.finditer(body):
|
for i in choice_regex.finditer(body):
|
||||||
body = body.replace(i.group(0), "")
|
body = body.replace(i.group(0), "")
|
||||||
c_choice = Comment(author_id=AUTOCHOICE_ID,
|
c_choice = Comment(author_id=AUTOCHOICE_ID,
|
||||||
|
|
|
@ -476,7 +476,6 @@ def edit_post(pid, v):
|
||||||
if body != p.body:
|
if body != p.body:
|
||||||
if v.id == p.author_id and v.agendaposter and not v.marseyawarded: body = torture_ap(body, v.username)
|
if v.id == p.author_id and v.agendaposter and not v.marseyawarded: body = torture_ap(body, v.username)
|
||||||
|
|
||||||
if not p.options:
|
|
||||||
for i in poll_regex.finditer(body):
|
for i in poll_regex.finditer(body):
|
||||||
body = body.replace(i.group(0), "")
|
body = body.replace(i.group(0), "")
|
||||||
c = Comment(author_id=AUTOPOLLER_ID,
|
c = Comment(author_id=AUTOPOLLER_ID,
|
||||||
|
@ -488,7 +487,6 @@ def edit_post(pid, v):
|
||||||
)
|
)
|
||||||
g.db.add(c)
|
g.db.add(c)
|
||||||
|
|
||||||
if not p.choices:
|
|
||||||
for i in choice_regex.finditer(body):
|
for i in choice_regex.finditer(body):
|
||||||
body = body.replace(i.group(0), "")
|
body = body.replace(i.group(0), "")
|
||||||
c = Comment(author_id=AUTOCHOICE_ID,
|
c = Comment(author_id=AUTOCHOICE_ID,
|
||||||
|
|
Loading…
Reference in New Issue