Skip to content

Commit

Permalink
Merge pull request #1363 from Scifabric/fix-update-feed-info
Browse files Browse the repository at this point in the history
Hide also webhook.
  • Loading branch information
teleyinex committed Dec 29, 2016
2 parents 3a42604 + 611a640 commit 50647f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pybossa/model/event_listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,17 @@ def on_taskrun_submit(mapper, conn, target):
project_obj['short_name'] = r.short_name
project_obj['published'] = r.published
# TODO: update with public data
#project_obj['info'] = r.info
project_obj['webhook'] = r.webhook
# project_obj['info'] = r.info
# project_obj['webhook'] = r.webhook
_webhook = r.webhook
project_obj['id'] = target.project_id

add_user_contributed_to_feed(conn, target.user_id, project_obj)
if is_task_completed(conn, target.task_id) and project_obj['published']:
update_task_state(conn, target.task_id)
update_feed(project_obj)
result_id = create_result(conn, target.project_id, target.task_id)
project_obj['webhook'] = _webhook
push_webhook(project_obj, target.task_id, result_id)


Expand Down

0 comments on commit 50647f6

Please sign in to comment.