From 262b0e8cbb1ad792411a288f6239cfe230835615 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 17 Mar 2022 20:31:09 +0200 Subject: [PATCH] fds --- files/routes/posts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 40d130c66..23b5753df 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -21,7 +21,9 @@ from shutil import copyfile from sys import stdout -snappyquotes = [f':#{x}:' for x in marseys_const2] +if SITE_NAME == 'PCM': snappyquotes = [] +else: snappyquotes = [f':#{x}:' for x in marseys_const2] + if path.exists(f'snappy_{SITE_NAME}.txt'): with open(f'snappy_{SITE_NAME}.txt', "r", encoding="utf-8") as f: snappyquotes += f.read().split("\n{[para]}\n")