Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
limbra
limbra
Commits
003f4446
Commit
003f4446
authored
Jan 19, 2021
by
LE GAC Renaud
Browse files
Update harvest to restore controller insert_recjson
parent
fae5d9e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
controllers/harvest.py
controllers/harvest.py
+6
-0
No files found.
controllers/harvest.py
View file @
003f4446
...
...
@@ -360,9 +360,15 @@ def insert_recjson():
tool
.
harvester
.
host
=
selector
.
host
tool
.
logs
=
[]
tool
.
shelf
=
\
(
"literature"
if
selector
.
host
==
"inspirehep.net"
else
None
)
recjson
=
json
.
loads
(
selector
.
recjson
)
recjson
=
(
recjson
[
0
]
if
isinstance
(
recjson
,
list
)
else
recjson
)
if
selector
.
host
==
"inspirehep.net"
:
recjson
=
recjson
[
"metadata"
]
tool
.
process_recjson
(
recjson
)
except
ToolException
as
e
:
...
...
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