Commit 104838f2 authored by delanoe's avatar delanoe

[FIX] applyworkflow to Int.

parent 4b22a87b
......@@ -7,7 +7,6 @@ from django.contrib.staticfiles.storage import staticfiles_storage
from django.views.generic.base import RedirectView
from gargantext_web import views, views_optimized
import gargantext_web.corpus_views as corpus_views
from annotations import urls as annotations_urls
from annotations.views import main as annotations_main_view
......
......@@ -136,7 +136,7 @@ def doTheQuery(request , project_id):
)
session.add(corpus)
session.commit()
corpus_id = corpus.id
# """
# urlreqs: List of urls to query.
# - Then, to each url in urlreqs you do:
......@@ -172,9 +172,9 @@ def doTheQuery(request , project_id):
try:
if not DEBUG:
apply_workflow.apply_async((corpus.id,),)
apply_workflow.apply_async((corpus_id,),)
else:
thread = threading.Thread(target=apply_workflow, args=(corpus.id, ), daemon=True)
thread = threading.Thread(target=apply_workflow, args=(corpus_id, ), daemon=True)
thread.start()
except Exception as error:
print('WORKFLOW ERROR')
......
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