Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/jobs/publication_plans_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,10 @@ 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)

missing_fields = []

if not card_fields.title or not card_fields.title.strip():
missing_fields.append("название")

error_display_name = (
card_fields.title.strip()
if card_fields.title and card_fields.title.strip()
Expand All @@ -118,7 +116,7 @@ def _retrieve_cards_for_paragraph(
if not card_fields.google_doc:
missing_fields.append("ссылка на Google Doc")

if (
if not is_telegram_card and (
not card_fields.authors
or len(card_fields.authors) == 0
or not any(author and author.strip() for author in card_fields.authors)
Expand Down
Loading