Skip to content
Snippets Groups Projects
Commit ff7f6f17 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix celery task syntax

parent 666e7a72
No related branches found
No related tags found
No related merge requests found
......@@ -515,7 +515,7 @@ def push_to_wiki_async(protocol_id, content, infobox_content, summary):
def push_to_dokuwiki(protocol, content, summary):
push_to_dokuwiki_async.delay(protocol.id, content, summary)
@celery_task
@celery.task
def push_to_dokuwiki_async(protocol_id, content, summary):
protocol = Protocol.query.filter_by(id=protocol_id).first()
with xmlrpc.client.ServerProxy(config.WIKI_API_URL) as proxy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment