fdsfds
This commit is contained in:
parent
7499cf434e
commit
86b790dae4
1 changed files with 10 additions and 10 deletions
|
@ -25,22 +25,22 @@ else: cc = "country club"
|
||||||
@admin_level_required(3)
|
@admin_level_required(3)
|
||||||
def notify(v):
|
def notify(v):
|
||||||
|
|
||||||
text_html = sanitize(CustomRenderer().render(mistletoe.Document("IMPORTANT: https://rdrama.net/post/30782/psa-make-sure-you-know-your")))
|
# text_html = sanitize(CustomRenderer().render(mistletoe.Document("IMPORTANT: https://rdrama.net/post/30782/psa-make-sure-you-know-your")))
|
||||||
|
|
||||||
new_comment = Comment(author_id=AUTOJANNY_ID,
|
# new_comment = Comment(author_id=AUTOJANNY_ID,
|
||||||
parent_submission=None,
|
# parent_submission=None,
|
||||||
distinguish_level=6,
|
# distinguish_level=6,
|
||||||
body_html=text_html)
|
# body_html=text_html)
|
||||||
g.db.add(new_comment)
|
# g.db.add(new_comment)
|
||||||
g.db.flush()
|
# g.db.flush()
|
||||||
|
|
||||||
users = (x[0] for x in g.db.query(User.id).all())
|
users = (x[0] for x in g.db.query(User.id).all())
|
||||||
for u in users:
|
for u in users:
|
||||||
print(u)
|
print(u)
|
||||||
notif = Notification(comment_id=new_comment.id, user_id=u)
|
# notif = Notification(comment_id=new_comment.id, user_id=u)
|
||||||
g.db.add(notif)
|
# g.db.add(notif)
|
||||||
|
|
||||||
g.db.commit()
|
# g.db.commit()
|
||||||
return "sex"
|
return "sex"
|
||||||
|
|
||||||
@app.get("/distribute/<cid>")
|
@app.get("/distribute/<cid>")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue