From 381f24a4393845d1d8349e61f8e19dbdb853fec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=81=D0=B8=D0=BD=D0=B5=D1=87=D0=BA=D0=B0=20=E2=99=A1?= <63897347+ktnk-dev@users.noreply.github.com> Date: Wed, 2 Sep 2026 18:33:54 +0300 Subject: [PATCH] temporary remove target kind condition for displaying details --- models/schedule.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/models/schedule.py b/models/schedule.py index 3e8946b..c086bcc 100644 --- a/models/schedule.py +++ b/models/schedule.py @@ -234,13 +234,16 @@ class Lesson: for group in self.group_names ] - if self.target_kind == "teacher": - details = rooms + groups - elif self.target_kind == "room": - details = groups + teachers - elif self.target_kind == "group": - details = teachers + rooms - else: + # FIXME: Не отображаются подгруппы + + # if self.target_kind == "teacher": + # details = rooms + groups + # elif self.target_kind == "room": + # details = groups + teachers + # elif self.target_kind == "group": + # details = teachers + rooms + # else: + if True: details = teachers + rooms + groups info = ", ".join(details) if details else "Дополнительная информация отсутствует"