fix warning in test

This commit is contained in:
SvyatoslavArtymovych 2023-05-15 11:47:37 +03:00
parent 80c7d1dcaa
commit 2556838a77
2 changed files with 3151 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -61,7 +61,7 @@ def edit_profile():
@bp.route("/<int:user_id>/profile") @bp.route("/<int:user_id>/profile")
@login_required @login_required
def profile(user_id: int): def profile(user_id: int):
user: m.User = m.User.query.get(user_id) user: m.User = db.session.get(m.User, user_id)
interpretations: m.Interpretation = m.Interpretation.query.filter_by( interpretations: m.Interpretation = m.Interpretation.query.filter_by(
user_id=user_id user_id=user_id
) )