Skip to content

Commit

Permalink
fix get_config bug and lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Jan 22, 2025
1 parent 9ea63ea commit f5bc6ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/archive/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def _can_remove_item(self, item, now, processed_item=None, preserve_published_de
# Get the item references for is package
item_refs = package_service.get_residrefs(item)

if item.get(ITEM_TYPE) in [CONTENT_TYPE.TEXT, CONTENT_TYPE.PREFORMATTED] and app.config.get(
if item.get(ITEM_TYPE) in [CONTENT_TYPE.TEXT, CONTENT_TYPE.PREFORMATTED] and get_app_config(
"BROADCAST_ENABLED", True
):
broadcast_items = get_resource_service("archive_broadcast").get_broadcast_items_from_master_story(item)
Expand Down
2 changes: 1 addition & 1 deletion apps/publish/enqueue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def run(self, published_item_id_s: str, content_type: str | None = None) -> None
archive_service = cast(ArchiveService, get_resource_service(ARCHIVE))
published_service = get_resource_service(PUBLISHED)
try:
published_service.patch(published_item_id, {QUEUE_STATE: PUBLISH_STATE.PUSHED})
published_service.patch(published_item_id, {QUEUE_STATE: PUBLISH_STATE.PUSHED}) # type: ignore
published_item = archive_service.find_one(req=None, _id=published_item_id)
except Exception:
logger.exception("Can't push publish item.")
Expand Down

0 comments on commit f5bc6ab

Please sign in to comment.