forked from rDrama/rDrama
1
0
Fork 0

sMerge branch 'frost' of https://github.com/Aevann1/Drama into frost

master
Aevann1 2022-01-21 12:14:10 +00:00
commit aaa0a41b5c
1 changed files with 1 additions and 5 deletions

View File

@ -26,11 +26,6 @@ CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/
month = datetime.now().strftime('%B')
@app.get("/ratelimittest")
@limiter.limit("1/day")
def ratelimittest():
return 'sex'
@app.get("/refund")
@admin_level_required(3)
def refund(v):
@ -1218,6 +1213,7 @@ def admin_distinguish_comment(c_id, v):
def admin_dump_cache(v):
with open('marsey_count.json', 'w') as f: dump(cache.get("marsey_count"), f)
cache.clear()
with open("marsey_count.json", 'r') as f: cache.set("marsey_count", loads(f.read()))
return {"message": "Internal cache cleared."}