sneed
This commit is contained in:
parent
60d3aa93b2
commit
4bffa7daa0
1 changed files with 2 additions and 2 deletions
|
@ -388,7 +388,7 @@ def archiveorg(url):
|
||||||
except Exception as e: print(e)
|
except Exception as e: print(e)
|
||||||
|
|
||||||
|
|
||||||
def sex():
|
def sex(g):
|
||||||
for u in g.db.query(User).filter(User.profileurl != None).all():
|
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,7 +405,7 @@ def sex():
|
||||||
|
|
||||||
@app.route("/admin/resize", methods=["GET"])
|
@app.route("/admin/resize", methods=["GET"])
|
||||||
def resize():
|
def resize():
|
||||||
gevent.spawn(archiveorg, "https://sex.com")
|
gevent.spawn(sex, g)
|
||||||
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