Merge branch 'develop' into kostia/fix/changes_after_demo

This commit is contained in:
Kostiantyn Stoliarskyi 2023-05-15 12:24:06 +03:00
commit 28fb60a240
4 changed files with 4 additions and 4 deletions

View File

@ -169,7 +169,7 @@
<div class="flex border-t-2 pt-3 mt-6 align-center justify-between md:w-full"> <div class="flex border-t-2 pt-3 mt-6 align-center justify-between md:w-full">
<div> <div>
<span class="hidden md:inline-block">Interpretation by</span> <span class="hidden md:inline-block">Interpretation by</span>
<a href="{{url_for('user.profile',user_id=interpretation.user.id)}}" class=" text-blue-500 {% if user.is_deleted line-through %}{% endif %}">{{interpretation.user.username}}</a> on {{interpretation.created_at.strftime('%B %d, %Y')}} <a href="{{url_for('user.profile',user_id=interpretation.user.id)}}" class=" text-blue-500 {% if user.is_deleted %}line-through{% endif %}">{{interpretation.user.username}}</a> on {{interpretation.created_at.strftime('%B %d, %Y')}}
</div> </div>
<div class="flex ml-auto justify-between w-24"> <div class="flex ml-auto justify-between w-24">
<span class="space-x-0.5 flex items-center"> <span class="space-x-0.5 flex items-center">

View File

@ -79,7 +79,7 @@
<div class="flex mt-auto align-center justify-between md:w-full"> <div class="flex mt-auto align-center justify-between md:w-full">
<div> <div>
<span class="hidden md:inline-block">Interpretation by</span> <span class="hidden md:inline-block">Interpretation by</span>
<a href="{{url_for('user.profile',user_id=interpretation.user.id)}}" class=" text-blue-500">{{interpretation.user.username}}</a> on {{interpretation.created_at.strftime('%B %d, %Y')}} <a href="{{url_for('user.profile',user_id=interpretation.user.id)}}" class=" text-blue-500 {% if interpretation.user.is_deleted %}line-through{% endif %}">{{interpretation.user.username}}</a> on {{interpretation.created_at.strftime('%B %d, %Y')}}
</div> </div>
<div class="flex ml-auto justify-between w-24"> <div class="flex ml-auto justify-between w-24">
<span class="space-x-0.5 flex items-center"> <span class="space-x-0.5 flex items-center">

View File

@ -123,7 +123,7 @@
<div class="flex mt-auto align-center justify-between md:w-full"> <div class="flex mt-auto align-center justify-between md:w-full">
<div> <div>
<span class="hidden md:inline-block">Interpretation by</span> <span class="hidden md:inline-block">Interpretation by</span>
<a href="{{url_for('user.profile',user_id=interpretation.user.id)}}" class=" text-blue-500">{{interpretation.user.username}}</a> on {{interpretation.created_at.strftime('%B %d, %Y')}} <a href="{{url_for('user.profile',user_id=interpretation.user.id)}}" class=" text-blue-500 {% if interpretation.user.is_deleted %}line-through{% endif %}">{{interpretation.user.username}}</a> on {{interpretation.created_at.strftime('%B %d, %Y')}}
</div> </div>
<div class="flex ml-auto justify-between w-24"> <div class="flex ml-auto justify-between w-24">
<span class="space-x-0.5 flex items-center"> <span class="space-x-0.5 flex items-center">

View File

@ -60,7 +60,7 @@ def edit_profile():
@bp.route("/<int:user_id>/profile") @bp.route("/<int:user_id>/profile")
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
) )