Skip to content

Commit 603ca11

Browse files
authored
Merge pull request #456 from sysblok/dev
fix: check Телеграм label before BLACK color filter
2 parents cb98572 + a1adebd commit 603ca11

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/jobs/publication_plans_job.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ def _retrieve_cards_for_paragraph(
101101
]
102102

103103
is_archive_card = load("common_trello_label__archive") in label_names
104-
is_telegram_card = any("Телеграм" in name for name in label_names)
104+
is_telegram_card = any(
105+
"телеграм" in label.name.lower() for label in card.labels
106+
)
105107

106108
missing_fields = []
107109

0 commit comments

Comments
 (0)