fds
This commit is contained in:
parent
ade23c48c5
commit
a7e911e56d
6 changed files with 3 additions and 7 deletions
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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={
|
||||
|
|
|
@ -132,7 +132,7 @@ def stats():
|
|||
}
|
||||
|
||||
@app.get("/chart")
|
||||
def chart(v):
|
||||
def chart():
|
||||
return redirect('/weekly_chart')
|
||||
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue