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
2b271a68
Commit
2b271a68
authored
Apr 12, 2017
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REPEC] TODO fix invalide date.
parent
d1244888
Changes
2
Hide 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 @
2b271a68
...
@@ -100,7 +100,7 @@ class MultivacCrawler(Crawler):
...
@@ -100,7 +100,7 @@ class MultivacCrawler(Crawler):
for
doc
in
docs
:
for
doc
in
docs
:
corpus
.
append
(
doc
)
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
downloaded
=
True
return
downloaded
return
downloaded
gargantext/util/parsers/MULTIVAC.py
View file @
2b271a68
...
@@ -55,6 +55,9 @@ class MultivacParser(Parser):
...
@@ -55,6 +55,9 @@ class MultivacParser(Parser):
year
=
doc
.
get
(
"serial"
,
{})
\
year
=
doc
.
get
(
"serial"
,
{})
\
.
get
(
"issuedate"
,
None
)
.
get
(
"issuedate"
,
None
)
if
year
==
"Invalide date"
:
year
=
doc
.
get
(
"issuedate"
,
None
)
if
year
is
None
:
if
year
is
None
:
year
=
datetime
.
now
()
year
=
datetime
.
now
()
else
:
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