master
Aevann1 2021-07-21 18:15:18 +02:00
parent 1903cf99c9
commit 722b368f7c
1 changed files with 16 additions and 12 deletions

View File

@ -23,11 +23,9 @@ from flask import *
import matplotlib.pyplot as plt
from .front import frontlist
from ruqqus.__main__ import app, cache
import gevent
@app.route("/admin/resize", methods=["GET"])
@admin_level_required(6)
def resize(v):
def sex():
for u in g.db.query(User).filter(User.profileurl != None).all():
print(f"1 {u.profileurl}")
x = requests.get(u.profileurl)
@ -39,9 +37,15 @@ def resize(v):
u.profileurl = upload_from_file("nigger", "nigger", (50, 50))
g.db.add(u)
print(f"2 {u.profileurl}")
return "sex"
time.sleep(100)
@app.route("/admin/resize", methods=["GET"])
@admin_level_required(6)
def resize(v):
gevent.spawn(sex)
return "sex"
@app.route("/admin/shadowbanned", methods=["GET"])
@auth_required
def shadowbanned(v):