This commit is contained in:
Aevann1 2022-01-22 21:21:16 +02:00
parent 6482c5ba06
commit dbdcefcfd9
7 changed files with 14 additions and 14 deletions

View file

@ -1008,7 +1008,7 @@ def submit_post(v):
with open(f'snappy_{SITE_NAME}.txt', "r") as f:
snappyquotes = f.read().split("{[para]}")
if request.host != 'pcmemes.net':
with open("marseys.json", 'r') as f: marseys = loads(f.read()).keys()
with open("marseys.json", 'r') as f: marseys = loads(f.read().replace("'",'"')).keys()
snappyquotes += [f':#{x}:' for x in marseys]
body = random.choice(snappyquotes)
body += "\n\n"