diff --git a/src/consts.py b/src/consts.py index 8740df5..39ba0d7 100644 --- a/src/consts.py +++ b/src/consts.py @@ -99,6 +99,7 @@ class TrelloListAlias(Enum): TO_CHIEF_EDITOR = "trello_list_name__to_chief_editor" PROOFREADING = "trello_list_name__proofreading" DONE = "trello_list_name__typesetting" + PUBLISHED = "trello_list_name__published" BACK_BURNER = "trello_list_name__back_burner" diff --git a/src/jobs/fill_posts_list_job.py b/src/jobs/fill_posts_list_job.py index 414d7f2..2ed1bf0 100644 --- a/src/jobs/fill_posts_list_job.py +++ b/src/jobs/fill_posts_list_job.py @@ -26,7 +26,9 @@ def _execute( registry_posts += FillPostsListJob._retrieve_cards_for_registry( trello_client=app_context.trello_client, - list_aliases=(TrelloListAlias.PROOFREADING, TrelloListAlias.DONE), + list_aliases=[ + TrelloListAlias.PUBLISHED + ], all_rubrics=all_rubrics, errors=errors, show_due=True, diff --git a/src/utils/card_checks.py b/src/utils/card_checks.py index 7051a51..76a045a 100644 --- a/src/utils/card_checks.py +++ b/src/utils/card_checks.py @@ -57,6 +57,7 @@ def is_author_missing(card: TrelloCard, app_context: AppContext) -> Tuple[bool, TrelloListAlias.TO_CHIEF_EDITOR, TrelloListAlias.PROOFREADING, TrelloListAlias.DONE, + TrelloListAlias.PUBLISHED, ) list_ids = app_context.trello_client.get_list_id_from_aliases(list_aliases) return card.lst.id in list_ids, {} @@ -75,6 +76,7 @@ def is_tag_missing(card: TrelloCard, app_context: AppContext) -> Tuple[bool, dic TrelloListAlias.TO_CHIEF_EDITOR, TrelloListAlias.PROOFREADING, TrelloListAlias.DONE, + TrelloListAlias.PUBLISHED, ) list_ids = app_context.trello_client.get_list_id_from_aliases(list_aliases) return card.lst.id in list_ids, {} @@ -89,6 +91,7 @@ def is_doc_missing(card: TrelloCard, app_context: AppContext) -> Tuple[bool, dic TrelloListAlias.TO_CHIEF_EDITOR, TrelloListAlias.PROOFREADING, TrelloListAlias.DONE, + TrelloListAlias.PUBLISHED, ) list_ids = app_context.trello_client.get_list_id_from_aliases(list_aliases) if card.lst.id not in list_ids: @@ -107,6 +110,7 @@ def has_no_doc_access(card: TrelloCard, app_context: AppContext) -> Tuple[bool, TrelloListAlias.TO_CHIEF_EDITOR, TrelloListAlias.PROOFREADING, TrelloListAlias.DONE, + TrelloListAlias.PUBLISHED, ) list_ids = app_context.trello_client.get_list_id_from_aliases(list_aliases) if card.lst.id not in list_ids: