From ce0d94f7b3f86957f545be96cfb01c8453d05fbb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 15 Aug 2022 07:48:03 +0200 Subject: [PATCH] fix 500 error on /submit caused by me being a retard --- files/helpers/const.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/helpers/const.py b/files/helpers/const.py index 33f1d8ddc5..823cd56d1a 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -920,9 +920,11 @@ marseys_const = [x[0] for x in db.query(Marsey.name).filter(Marsey.name!='chudse marseys_const2 = marseys_const + ['chudsey','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9','exclamationpoint','period','questionmark'] db.close() +SNAPPY_MARSEYS = [] if SITE_NAME not in ('PCM', 'LGBDropTheT'): SNAPPY_MARSEYS = [f':#{x}:' for x in marseys_const2] +SNAPPY_QUOTES = [] if path.isfile(f'snappy_{SITE_NAME}.txt'): with open(f'snappy_{SITE_NAME}.txt', "r", encoding="utf-8") as f: SNAPPY_QUOTES = f.read().split("\n{[para]}\n")