Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions server/planning/commands/delete_spiked_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
from superdesk.lock import lock, unlock, remove_locks
from planning.common import WORKFLOW_STATE
from planning.events.events_utils import get_recurring_timeline
from .async_cli import planning_cli
from superdesk.commands import cli


log_msg_context: ContextVar[str] = ContextVar("log_msg", default="")


@planning_cli.command("planning:delete_spiked")
@cli.command("planning:delete_spiked")
async def delete_spiked_items_command():
"""
Delete expired spiked `Events` and `Planning` items.
Expand Down
4 changes: 2 additions & 2 deletions server/planning/commands/flag_expired_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
from superdesk.celery_task_utils import get_lock_id
from superdesk.lock import lock, unlock, remove_locks
from superdesk.notification import push_notification
from .async_cli import planning_cli
from superdesk.commands import cli

from planning.utils import get_related_planning_for_events_async, get_related_event_ids_for_planning


log_msg_context: ContextVar[str] = ContextVar("log_msg", default="")


@planning_cli.command("planning:flag_expired")
@cli.command("planning:flag_expired")
async def flag_expired_items_command():
"""
Flag expired `Events` and `Planning` items with `{'expired': True}`.
Expand Down
4 changes: 2 additions & 2 deletions server/planning/commands/purge_expired_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
from planning.utils import get_service, try_cast_object_id
from planning.events import EventsAutosaveAsyncService
from planning.planning import PlanningAutosaveAsyncService
from .async_cli import planning_cli
from superdesk.commands import cli

logger = logging.getLogger(__name__)


@planning_cli.command("planning:purge_expired_locks")
@cli.command("planning:purge_expired_locks")
@click.option(
"--resource",
"-r",
Expand Down