forked from MarseyWorld/MarseyWorld
master
parent
f1fbb733fa
commit
a706b3105c
|
@ -621,4 +621,8 @@ discounts = {
|
||||||
71: 0.06,
|
71: 0.06,
|
||||||
72: 0.08,
|
72: 0.08,
|
||||||
73: 0.10,
|
73: 0.10,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CF_KEY = environ.get("CF_KEY", "").strip()
|
||||||
|
CF_ZONE = environ.get("CF_ZONE", "").strip()
|
||||||
|
CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/json"}
|
|
@ -20,10 +20,6 @@ import requests
|
||||||
GUMROAD_ID = environ.get("GUMROAD_ID", "tfcvri").strip()
|
GUMROAD_ID = environ.get("GUMROAD_ID", "tfcvri").strip()
|
||||||
GUMROAD_TOKEN = environ.get("GUMROAD_TOKEN", "").strip()
|
GUMROAD_TOKEN = environ.get("GUMROAD_TOKEN", "").strip()
|
||||||
|
|
||||||
CF_KEY = environ.get("CF_KEY", "").strip()
|
|
||||||
CF_ZONE = environ.get("CF_ZONE", "").strip()
|
|
||||||
CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/json"}
|
|
||||||
|
|
||||||
month = datetime.now().strftime('%B')
|
month = datetime.now().strftime('%B')
|
||||||
|
|
||||||
|
|
||||||
|
@ -1099,6 +1095,8 @@ def ban_post(post_id, v):
|
||||||
v.coins += 1
|
v.coins += 1
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
|
|
||||||
|
requests.post(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/purge_cache', headers=CF_HEADERS, json={'files': [f"{SITE_FULL}/logged_out/"]})
|
||||||
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
return {"message": "Post removed!"}
|
return {"message": "Post removed!"}
|
||||||
|
|
|
@ -21,9 +21,6 @@ IMGUR_KEY = environ.get("IMGUR_KEY").strip()
|
||||||
|
|
||||||
if PUSHER_ID: beams_client = PushNotifications(instance_id=PUSHER_ID, secret_key=PUSHER_KEY)
|
if PUSHER_ID: beams_client = PushNotifications(instance_id=PUSHER_ID, secret_key=PUSHER_KEY)
|
||||||
|
|
||||||
CF_KEY = environ.get("CF_KEY", "").strip()
|
|
||||||
CF_ZONE = environ.get("CF_ZONE", "").strip()
|
|
||||||
CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/json"}
|
|
||||||
WORD_LIST = tuple(set(environ.get("WORDLE").split(" ")))
|
WORD_LIST = tuple(set(environ.get("WORDLE").split(" ")))
|
||||||
|
|
||||||
@app.get("/comment/<cid>")
|
@app.get("/comment/<cid>")
|
||||||
|
|
|
@ -32,10 +32,6 @@ else: snappyquotes = marseys
|
||||||
|
|
||||||
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
|
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
|
||||||
|
|
||||||
CF_KEY = environ.get("CF_KEY", "").strip()
|
|
||||||
CF_ZONE = environ.get("CF_ZONE", "").strip()
|
|
||||||
CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/json"}
|
|
||||||
|
|
||||||
discounts = {
|
discounts = {
|
||||||
69: 0.02,
|
69: 0.02,
|
||||||
70: 0.04,
|
70: 0.04,
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if SITE_NAME=='Drama' and u.house %}
|
{% if SITE_NAME=='Drama' and u.house %}
|
||||||
<img class="ml-3" src="/assets/images/{{SITE_NAME}}/houses/{{u.house}}.webp?a=7" height="40" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="House {{u.house}}" alt="House {{u.house}}">
|
<img class="ml-3" src="/assets/images/{{SITE_NAME}}/houses/{{u.house}}.webp?a=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="House {{u.house}}" alt="House {{u.house}}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if u.verified %}<span><i class="fas fa-badge-check align-middle ml-1" style="color:{% if u.verifiedcolor %}#{{u.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{u.verified}}"></i></span>{% endif %}
|
{% if u.verified %}<span><i class="fas fa-badge-check align-middle ml-1" style="color:{% if u.verifiedcolor %}#{{u.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{u.verified}}"></i></span>{% endif %}
|
||||||
|
@ -374,7 +374,7 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if SITE_NAME=='Drama' and u.house %}
|
{% if SITE_NAME=='Drama' and u.house %}
|
||||||
<img class="ml-3" src="/assets/images/{{SITE_NAME}}/houses/{{u.house}}.webp?a=7" height="40" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="House {{u.house}}" alt="House {{u.house}}">
|
<img class="ml-3" src="/assets/images/{{SITE_NAME}}/houses/{{u.house}}.webp?a=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="House {{u.house}}" alt="House {{u.house}}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if u.admin_level > 1 or (u.admin_level == 1 and not(v and v.admin_level > 1)) %}
|
{% if u.admin_level > 1 or (u.admin_level == 1 and not(v and v.admin_level > 1)) %}
|
||||||
<span>
|
<span>
|
||||||
|
|
Loading…
Reference in New Issue