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,25 +23,29 @@ from flask import *
import matplotlib.pyplot as plt
from .front import frontlist
from ruqqus.__main__ import app, cache
import gevent
def sex():
for u in g.db.query(User).filter(User.profileurl != None).all():
print(f"1 {u.profileurl}")
x = requests.get(u.profileurl)
with open("nigger", "wb") as file:
for chunk in x.iter_content(1024):
file.write(chunk)
u.profileurl = upload_from_file("nigger", "nigger", (50, 50))
g.db.add(u)
print(f"2 {u.profileurl}")
time.sleep(100)
@app.route("/admin/resize", methods=["GET"])
@admin_level_required(6)
def resize(v):
for u in g.db.query(User).filter(User.profileurl != None).all():
print(f"1 {u.profileurl}")
x = requests.get(u.profileurl)
with open("nigger", "wb") as file:
for chunk in x.iter_content(1024):
file.write(chunk)
u.profileurl = upload_from_file("nigger", "nigger", (50, 50))
g.db.add(u)
print(f"2 {u.profileurl}")
gevent.spawn(sex)
return "sex"
@app.route("/admin/shadowbanned", methods=["GET"])
@auth_required
def shadowbanned(v):