Commit ff7f6f17 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix celery task syntax

parent 666e7a72
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment