Commit 28a600f5 authored by delanoe's avatar delanoe

[FIX] bugs on test

parent 0f25cb4a
......@@ -162,10 +162,13 @@ class bulk_insert:
def read(self, size=None):
try:
return self.template % tuple(
test = self.template % tuple(
'\\N' if x is None else str(x).replace('\r', ' ').replace('\n', ' ').replace('\t', ' ').replace("\\","")
for x in next(self.iter)
)
print(test)
return test
except StopIteration:
return ''
......
......@@ -10,7 +10,7 @@ from gargantext_web.db import Session, Base, Node, NodeNgram, Ngram
# test!
if __name__ == '__main__':
step = 2
step = 1
session = Session()
# nodes creation
......@@ -44,8 +44,8 @@ if __name__ == '__main__':
corpus.append(document)
root.append(corpus)
print(root)
#print(root)
# ngrams extraction
elif step == 1:
root = session.query(Node).filter(Node.depth == 0).first()
......
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