testing
This commit is contained in:
parent
35dddec8f9
commit
6954bc75c1
7 changed files with 24 additions and 13 deletions
|
@ -178,7 +178,6 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
|
|||
sanitized = re.sub('\|\|(.*?)\|\|', r'<span class="spoiler">\1</span>', sanitized)
|
||||
|
||||
if comment:
|
||||
with open("marsey_count.json", 'r') as f: marsey_count = loads(f.read())
|
||||
marseys_used = set()
|
||||
|
||||
for i in re.finditer("[^a]>\s*(:[!#]{0,2}\w+:\s*)+<\/", sanitized):
|
||||
|
@ -260,7 +259,6 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
|
|||
if comment:
|
||||
for emoji in marseys_used:
|
||||
if emoji in marsey_count: marsey_count[emoji] += 1
|
||||
with open('marsey_count.json', 'w') as f: dump(marsey_count, f)
|
||||
|
||||
return sanitized
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue