fds
This commit is contained in:
parent
a9a0b753f7
commit
1b078f9fb3
1 changed files with 3 additions and 2 deletions
|
@ -23,11 +23,12 @@ from shutil import copyfile
|
|||
site = environ.get("DOMAIN").strip()
|
||||
site_name = environ.get("SITE_NAME").strip()
|
||||
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
|
||||
titleheaders = {"User-Agent": f"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36"}
|
||||
|
||||
if path.exists(f'snappy_{site_name}.txt'):
|
||||
with open(f'snappy_{site_name}.txt', "r") as f:
|
||||
snappyquotes = f.read().split("{[para]}") + [f':#{x}:' for x in marseys]
|
||||
if site == 'pcmemes.net': snappyquotes = f.read().split("{[para]}")
|
||||
else: snappyquotes = f.read().split("{[para]}") + [f':#{x}:' for x in marseys]
|
||||
|
||||
@app.post("/toggle_club/<pid>")
|
||||
@auth_required
|
||||
def toggle_club(pid, v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue