forked from MarseyWorld/MarseyWorld
remove linebreaks
parent
3987dc1686
commit
142be891f6
|
@ -392,15 +392,11 @@ def create_sub2(v):
|
|||
text = f":!marseyparty: /h/{hole} has been created by @{v.username} :marseyparty:"
|
||||
text_html = sanitize(text, blackjack="notification")
|
||||
cid = create_comment(text_html)
|
||||
|
||||
t = time.time() - 604800
|
||||
notified_users = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_HOLE_CREATION'], User.id != v.id, User.last_active > t)]
|
||||
|
||||
for uid in notified_users:
|
||||
add_notif(cid, uid, text, check_existing=False)
|
||||
|
||||
|
||||
|
||||
return redirect(f"/h/{hole}")
|
||||
|
||||
@app.post("/kick/<int:pid>")
|
||||
|
|
Loading…
Reference in New Issue