Move some blueprints and rename routes

This commit is contained in:
Patrick Jentsch committed 2024-11-15 15:59:08 +01:00
1 parent ee7f64f5be
commit a8ab1bee71
26 files changed
+45 -174

No files matched your search

+4 -4
View File
@@ -72,14 +72,14 @@ def terms_of_use():
)
@bp.route('/social-area')
@bp.route('/social')
@login_required
def social_area():
def social():
corpora = Corpus.query.filter(Corpus.is_public == True, Corpus.user != current_user).all()
users = User.query.filter(User.is_public == True, User.id != current_user.id).all()
return render_template(
'main/social_area.html.j2',
title='Social Area',
'main/social.html.j2',
title='Social',
corpora=corpora,
users=users
)