Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
df464229
Commit
df464229
authored
Apr 12, 2017
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REPEC] TODO fix invalide date.
parent
87a80173
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
MULTIVAC.py
gargantext/util/crawlers/MULTIVAC.py
+1
-1
MULTIVAC.py
gargantext/util/parsers/MULTIVAC.py
+3
-0
No files found.
gargantext/util/crawlers/MULTIVAC.py
View file @
df464229
...
...
@@ -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
gargantext/util/parsers/MULTIVAC.py
View file @
df464229
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment