From 38d8a52104e2b32cfe8358d4c64e8327095b6f35 Mon Sep 17 00:00:00 2001 From: Sofya Anokhovskaya Date: Tue, 27 May 2025 11:57:57 +0300 Subject: [PATCH] Fix site (#1001) * fix: getting site id from settings not request * fix: site id * fix: tests * fix: arc * fix: cr * fix: cr # Checklist: - [ ] The **ticket number** is indicated in the comments - [ ] Unrelated code has been removed **(unused imports, `print` statements, unrelated template context variables, commented code, etc)** - [ ] I **translated the new messages** and added only the .po files that actually changed. - [ ] If there were **changes in the frontend**, there is a PR in the front repository. --- - [ ] I have added **tests** that prove my code works - [ ] No common performance issues **(e.g. N + 1 problem)** --- lms/jinja2/lms/user_profile/_tab_account.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lms/jinja2/lms/user_profile/_tab_account.html b/lms/jinja2/lms/user_profile/_tab_account.html index bbf8479e8..3d28b6e18 100644 --- a/lms/jinja2/lms/user_profile/_tab_account.html +++ b/lms/jinja2/lms/user_profile/_tab_account.html @@ -30,7 +30,8 @@ {% endif %} {# Ссылка на курс #} - {{ enrollment.course }} + + {{ enrollment.course }} {# Иконки длительности курса #} {% if enrollment.course.duration == CourseDurations.FIRST_HALF %} @@ -40,7 +41,7 @@ {% endif %} {# Информация об оценке #} - + {% if enrollment.is_grade_recredited %}перезачтено,{% endif %} {{ enrollment.grade_honest|lower }}