forked from MarseyWorld/MarseyWorld
fix 500 error on /submit caused by me being a retard
parent
9ba484df86
commit
ce0d94f7b3
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue