From a1adebd91c4f78d1744e1cf8deb50f6a6ba4a93c Mon Sep 17 00:00:00 2001 From: Alex Kulikov Date: Tue, 19 May 2026 02:01:44 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20check=20=D0=A2=D0=B5=D0=BB=D0=B5=D0=B3?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=20label=20before=20BLACK=20color=20filter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Телеграм label uses grey-stone (BLACK) color, so it was being excluded from label_names before is_telegram_card was evaluated. Check directly against card.labels instead. Co-Authored-By: Claude Sonnet 4.6 --- src/jobs/publication_plans_job.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jobs/publication_plans_job.py b/src/jobs/publication_plans_job.py index 3db4fc7..4d7985e 100644 --- a/src/jobs/publication_plans_job.py +++ b/src/jobs/publication_plans_job.py @@ -101,7 +101,9 @@ def _retrieve_cards_for_paragraph( ] is_archive_card = load("common_trello_label__archive") in label_names - is_telegram_card = any("Телеграм" in name for name in label_names) + is_telegram_card = any( + "телеграм" in label.name.lower() for label in card.labels + ) missing_fields = []