fix 500 error on /submit caused by me being a retard

master
Aevann1 2022-08-15 07:48:03 +02:00
parent 9ba484df86
commit ce0d94f7b3
1 changed files with 2 additions and 0 deletions

View File

@ -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'] 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() db.close()
SNAPPY_MARSEYS = []
if SITE_NAME not in ('PCM', 'LGBDropTheT'): if SITE_NAME not in ('PCM', 'LGBDropTheT'):
SNAPPY_MARSEYS = [f':#{x}:' for x in marseys_const2] SNAPPY_MARSEYS = [f':#{x}:' for x in marseys_const2]
SNAPPY_QUOTES = []
if path.isfile(f'snappy_{SITE_NAME}.txt'): if path.isfile(f'snappy_{SITE_NAME}.txt'):
with open(f'snappy_{SITE_NAME}.txt', "r", encoding="utf-8") as f: with open(f'snappy_{SITE_NAME}.txt', "r", encoding="utf-8") as f:
SNAPPY_QUOTES = f.read().split("\n{[para]}\n") SNAPPY_QUOTES = f.read().split("\n{[para]}\n")