remotes/1693045480750635534/spooky-22
Aevann1 2022-04-24 00:09:25 +02:00
parent 8dde3965aa
commit 457a717075
6 changed files with 3 additions and 7 deletions

View File

@ -252,6 +252,7 @@ else:
BUG_THREAD = 0
WELCOME_MSG = f"Welcome to {SITE_NAME}!"
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
PUSHER_ID = environ.get("PUSHER_ID", "").strip()
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
DEFAULT_COLOR = environ.get("DEFAULT_COLOR", "fff").strip()

View File

@ -22,8 +22,6 @@ from sys import stdout
d = Dict("en_US")
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
if PUSHER_ID != 'blahblahblah':
beams_client = PushNotifications(instance_id=PUSHER_ID, secret_key=PUSHER_KEY)

View File

@ -27,8 +27,6 @@ if path.exists(f'snappy_{SITE_NAME}.txt'):
with open(f'snappy_{SITE_NAME}.txt', "r", encoding="utf-8") as f:
snappyquotes += f.read().split("\n{[para]}\n")
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
discounts = {
69: 0.02,
70: 0.04,

View File

@ -14,7 +14,6 @@ from shutil import copyfile
import requests
GUMROAD_TOKEN = environ.get("GUMROAD_TOKEN", "").strip()
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
GUMROAD_ID = environ.get("GUMROAD_ID", "tfcvri").strip()
tiers={

View File

@ -132,7 +132,7 @@ def stats():
}
@app.get("/chart")
def chart(v):
def chart():
return redirect('/weekly_chart')

View File

@ -673,7 +673,7 @@ def messagereply(v):
body_html = sanitize(message)
if request.files.get("file") and request.headers.get("cf-ipcountry") != "T1":
if v.admin_level > 1 and request.files.get("file") and request.headers.get("cf-ipcountry") != "T1":
file=request.files["file"]
if file.content_type.startswith('image/'):
name = f'/images/{time.time()}'.replace('.','') + '.webp'