remotes/1693045480750635534/spooky-22
Aevann1 2021-07-21 18:19:21 +02:00
parent 8b994d4ff6
commit 45c89d72cc
2 changed files with 3 additions and 28 deletions

View File

@ -25,7 +25,7 @@ from .front import frontlist
from ruqqus.__main__ import app, cache
import gevent
def sex():
def sex(lex):
for u in g.db.query(User).filter(User.profileurl != None).all():
print(f"1 {u.profileurl}")
x = requests.get(u.profileurl)
@ -43,7 +43,8 @@ def sex():
@app.route("/admin/resize", methods=["GET"])
@admin_level_required(6)
def resize(v):
gevent.spawn(sex)
lex = ""
gevent.spawn(sex, lex)
return "sex"
@app.route("/admin/shadowbanned", methods=["GET"])

View File

@ -868,32 +868,6 @@ def submit_post(v):
g.db.add(new_post)
g.db.add(new_post.submission_aux)
g.db.commit()
# #csam detection
# def del_function():
# db=db_session()
# delete_file(name)
# new_post.is_banned=True
# db.add(new_post)
# db.commit()
# ma=ModAction(
# kind="ban_post",
# user_id=2317,
# note="banned image",
# target_submission_id=new_post.id
# )
# db.add(ma)
# db.commit()
# db.close()
# csam_thread=threading.Thread(target=check_csam_url,
# args=(new_post.url,
# v,
# del_function
# )
# )
# csam_thread.start()
g.db.commit()