Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
ff7f6f17
Commit
ff7f6f17
authored
Feb 05, 2018
by
Robin Sonnabend
Browse files
Fix celery task syntax
parent
666e7a72
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks.py
View file @
ff7f6f17
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment