Commit f724cb1f authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update invenio_tools ti fix a bug in add_affiliation_key.

parent c7d9cc54
......@@ -46,7 +46,7 @@ def add_affiliation_keys(recjson):
rep = requests.get(url, params={"ot": "110", "of": "txt"})
# decode the string: '000recid 110__ $$aXXX$$bYYY$$tZZZ\n'
txt = rep.content.replace("\n", "")
txt = rep.text.replace("\n", "")
li = txt[txt.find("$"):].split("$$")
di = {}
......
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