File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2020from superdesk .lock import lock , unlock , remove_locks
2121from planning .common import WORKFLOW_STATE
2222from planning .events .events_utils import get_recurring_timeline
23- from . async_cli import planning_cli
23+ from superdesk . commands import cli
2424
2525
2626log_msg_context : ContextVar [str ] = ContextVar ("log_msg" , default = "" )
2727
2828
29- @planning_cli .command ("planning:delete_spiked" )
29+ @cli .command ("planning:delete_spiked" )
3030async def delete_spiked_items_command ():
3131 """
3232 Delete expired spiked `Events` and `Planning` items.
Original file line number Diff line number Diff line change 1313from superdesk .celery_task_utils import get_lock_id
1414from superdesk .lock import lock , unlock , remove_locks
1515from superdesk .notification import push_notification
16- from . async_cli import planning_cli
16+ from superdesk . commands import cli
1717
1818from planning .utils import get_related_planning_for_events_async , get_related_event_ids_for_planning
1919
2020
2121log_msg_context : ContextVar [str ] = ContextVar ("log_msg" , default = "" )
2222
2323
24- @planning_cli .command ("planning:flag_expired" )
24+ @cli .command ("planning:flag_expired" )
2525async def flag_expired_items_command ():
2626 """
2727 Flag expired `Events` and `Planning` items with `{'expired': True}`.
Original file line number Diff line number Diff line change 2222from planning .utils import get_service , try_cast_object_id
2323from planning .events import EventsAutosaveAsyncService
2424from planning .planning import PlanningAutosaveAsyncService
25- from . async_cli import planning_cli
25+ from superdesk . commands import cli
2626
2727logger = logging .getLogger (__name__ )
2828
2929
30- @planning_cli .command ("planning:purge_expired_locks" )
30+ @cli .command ("planning:purge_expired_locks" )
3131@click .option (
3232 "--resource" ,
3333 "-r" ,
You can’t perform that action at this time.
0 commit comments