Skip to content

Commit

Permalink
WCM-167: remove useless pass trough function
Browse files Browse the repository at this point in the history
  • Loading branch information
stollero committed Jan 8, 2025
1 parent f1b14bc commit 9b9db48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/zeit/cms/workflow/browser/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def handle_edit_action(self, _, data):
to_publish = data['unique_ids']
if not to_publish:
return
zeit.cms.workflow.cli.manual_publish(data)
zeit.cms.workflow.cli.publish_content.delay(data)


class MenuItem(zeit.cms.browser.menu.GlobalMenuItem):
Expand Down
6 changes: 1 addition & 5 deletions core/src/zeit/cms/workflow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ def publish_content(options: dict):
transaction.abort()


def manual_publish(options: dict):
publish_content.delay(options)


@zeit.cms.cli.runner(principal=zeit.cms.cli.principal_from_args)
def publish():
parser = argparse.ArgumentParser(description='Publish content')
Expand Down Expand Up @@ -141,7 +137,7 @@ def publish():
options = options.__dict__
options['unique_ids'] = to_publish

manual_publish(options)
publish_content.delay(options)


@zeit.cms.cli.runner(principal=zeit.cms.cli.principal_from_args)
Expand Down

0 comments on commit 9b9db48

Please sign in to comment.