Split SITE_NAME into computer-readable SITE_ID and human-readable SITE_TITLE.

This commit is contained in:
Ben Rog-Wilhelm 2022-07-31 18:53:18 -05:00
parent 850d175563
commit 800ae8d2dc
59 changed files with 202 additions and 180 deletions

View file

@ -22,8 +22,8 @@ from sys import stdout
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:
if path.exists(f'snappy_{SITE_ID}.txt'):
with open(f'snappy_{SITE_ID}.txt', "r", encoding="utf-8") as f:
snappyquotes += f.read().split("\n{[para]}\n")
discounts = {