sneed
This commit is contained in:
parent
11c89fc19d
commit
0bb2ad746e
2 changed files with 4 additions and 5 deletions
|
@ -23,7 +23,6 @@ from flask import *
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
from .front import frontlist
|
from .front import frontlist
|
||||||
from ruqqus.__main__ import app, cache
|
from ruqqus.__main__ import app, cache
|
||||||
import gevent
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/admin/shadowbanned", methods=["GET"])
|
@app.route("/admin/shadowbanned", methods=["GET"])
|
||||||
|
|
|
@ -388,8 +388,8 @@ def archiveorg(url):
|
||||||
except Exception as e: print(e)
|
except Exception as e: print(e)
|
||||||
|
|
||||||
|
|
||||||
def sex(g, list):
|
def sex():
|
||||||
for u in li:
|
for u in g.db.query(User).filter(User.profileurl != None).all():
|
||||||
print(f"1 {u.profileurl}")
|
print(f"1 {u.profileurl}")
|
||||||
x = requests.get(u.profileurl)
|
x = requests.get(u.profileurl)
|
||||||
|
|
||||||
|
@ -405,8 +405,8 @@ def sex(g, list):
|
||||||
|
|
||||||
@app.route("/admin/resize", methods=["GET"])
|
@app.route("/admin/resize", methods=["GET"])
|
||||||
def resize():
|
def resize():
|
||||||
li = g.db.query(User).filter(User.profileurl != None).all()
|
new_thread = threading.Thread(target=sex)
|
||||||
gevent.spawn(sex, g, li)
|
new_thread.start()
|
||||||
return "sex"
|
return "sex"
|
||||||
|
|
||||||
@app.route("/submit", methods=['POST'])
|
@app.route("/submit", methods=['POST'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue