Move some blueprints and rename routes

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

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
)