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
|
BUG_THREAD = 0
|
||||||
WELCOME_MSG = f"Welcome to {SITE_NAME}!"
|
WELCOME_MSG = f"Welcome to {SITE_NAME}!"
|
||||||
|
|
||||||
|
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
|
||||||
PUSHER_ID = environ.get("PUSHER_ID", "").strip()
|
PUSHER_ID = environ.get("PUSHER_ID", "").strip()
|
||||||
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
|
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
|
||||||
DEFAULT_COLOR = environ.get("DEFAULT_COLOR", "fff").strip()
|
DEFAULT_COLOR = environ.get("DEFAULT_COLOR", "fff").strip()
|
||||||
|
|
|
@ -22,8 +22,6 @@ from sys import stdout
|
||||||
|
|
||||||
d = Dict("en_US")
|
d = Dict("en_US")
|
||||||
|
|
||||||
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
|
|
||||||
|
|
||||||
if PUSHER_ID != 'blahblahblah':
|
if PUSHER_ID != 'blahblahblah':
|
||||||
beams_client = PushNotifications(instance_id=PUSHER_ID, secret_key=PUSHER_KEY)
|
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:
|
with open(f'snappy_{SITE_NAME}.txt', "r", encoding="utf-8") as f:
|
||||||
snappyquotes += f.read().split("\n{[para]}\n")
|
snappyquotes += f.read().split("\n{[para]}\n")
|
||||||
|
|
||||||
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
|
|
||||||
|
|
||||||
discounts = {
|
discounts = {
|
||||||
69: 0.02,
|
69: 0.02,
|
||||||
70: 0.04,
|
70: 0.04,
|
||||||
|
|
|
@ -14,7 +14,6 @@ from shutil import copyfile
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
GUMROAD_TOKEN = environ.get("GUMROAD_TOKEN", "").strip()
|
GUMROAD_TOKEN = environ.get("GUMROAD_TOKEN", "").strip()
|
||||||
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
|
|
||||||
GUMROAD_ID = environ.get("GUMROAD_ID", "tfcvri").strip()
|
GUMROAD_ID = environ.get("GUMROAD_ID", "tfcvri").strip()
|
||||||
|
|
||||||
tiers={
|
tiers={
|
||||||
|
|
|
@ -132,7 +132,7 @@ def stats():
|
||||||
}
|
}
|
||||||
|
|
||||||
@app.get("/chart")
|
@app.get("/chart")
|
||||||
def chart(v):
|
def chart():
|
||||||
return redirect('/weekly_chart')
|
return redirect('/weekly_chart')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -673,7 +673,7 @@ def messagereply(v):
|
||||||
|
|
||||||
body_html = sanitize(message)
|
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"]
|
file=request.files["file"]
|
||||||
if file.content_type.startswith('image/'):
|
if file.content_type.startswith('image/'):
|
||||||
name = f'/images/{time.time()}'.replace('.','') + '.webp'
|
name = f'/images/{time.time()}'.replace('.','') + '.webp'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue