remotes/1693045480750635534/spooky-22
Aevann1 2021-08-30 18:41:38 +02:00
parent e528d0dcb9
commit ff36d5d247
3 changed files with 6 additions and 4 deletions

View File

@ -40,7 +40,8 @@ def agendaposters(v):
@admin_level_required(3)
def image_posts_listing(v):
page = int(request.args.get('page', 1))
try: page = int(request.args.get('page', 1))
except: page = 1
posts = g.db.query(Submission).order_by(Submission.id.desc())

View File

@ -18,7 +18,8 @@ def notifications(v):
page = int(request.args.get('page', 1))
try: page = int(request.args.get('page', 1))
except: page = 1
all_ = request.args.get('all', False)
messages = request.args.get('messages', False)
posts = request.args.get('posts', False)

View File

@ -126,8 +126,8 @@ def messagereply(v, username, id):
notif = Notification(comment_id=new_comment.id, user_id=user.id)
g.db.add(notif)
if not request.referrer or request.referrer.endswith('/notifications'): return redirect(f"/notifications?all=true/#comment-")
else: return redirect(request.referrer)
if not request.referrer or request.referrer.endswith('/notifications'): return redirect(f"/notifications?all=true#comment-{new_comment.id}")
else: return redirect(f"{request.referrer}#comment-{new_comment.id}")
@app.get("/songs/<id>")