Commit 2b271a68 authored by delanoe's avatar delanoe

[REPEC] TODO fix invalide date.

parent d1244888
......@@ -100,7 +100,7 @@ class MultivacCrawler(Crawler):
for doc in docs:
corpus.append(doc)
self.path = save(json.dumps(corpus).encode("utf-8"), name='Multivac', basedir=UPLOAD_DIRECTORY )
self.path = save(json.dumps(corpus).encode("utf-8"), name='Multivac.json', basedir=UPLOAD_DIRECTORY )
downloaded = True
return downloaded
......@@ -55,6 +55,9 @@ class MultivacParser(Parser):
year = doc.get("serial" , {})\
.get("issuedate", None)
if year == "Invalide date":
year = doc.get("issuedate" , None)
if year is None:
year = datetime.now()
else:
......
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