Commit 2b57f633 authored by sim's avatar sim

[FIX] Forgotten imports of settings

parent a56f236b
...@@ -42,8 +42,8 @@ def scheduled_celery(func): ...@@ -42,8 +42,8 @@ def scheduled_celery(func):
return go return go
from gargantext.settings import DEBUG from django.conf import settings
if DEBUG: if settings.DEBUG:
# scheduled = scheduled_now # scheduled = scheduled_now
scheduled = scheduled_thread scheduled = scheduled_thread
else: else:
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
COOCS COOCS
(this is the full SQL version, should be more reliable on outerjoin) (this is the full SQL version, should be more reliable on outerjoin)
""" """
from gargantext import settings
from sqlalchemy import exc from sqlalchemy import exc
from gargantext.util.lists import WeightedMatrix from gargantext.util.lists import WeightedMatrix
from gargantext.util.db import get_engine from gargantext.util.db import get_engine
...@@ -112,7 +111,7 @@ def compute_coocs( corpus, ...@@ -112,7 +111,7 @@ def compute_coocs( corpus,
-- GROUP BY ngA, ngB -- GROUP BY ngA, ngB
) )
""" """
# 3) taking the cooccurrences of ngram x2 # 3) taking the cooccurrences of ngram x2
ngram_filter_A_sql += """ ngram_filter_A_sql += """
-- STEP 1: X axis of the matrix -- STEP 1: X axis of the matrix
......
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