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

Update InvenioStore.interogate to FIX inspirehep.net → old.inspirehep.net.

parent 6e20fe63
......@@ -6,7 +6,6 @@ import requests
from .exception import CdsException
from requests.adapters import HTTPAdapter
CDS_SEARCH_KEYS = ("req", "cc", "c", "ec", "p", "f", "rg", "sf", "so", "sp",
"rm", "of", "ot", "as", "p1", "f1", "m1", "op1", "p2", "f2",
"m2", "op2", "p3", "f3", "m3", "sc", "jrec", "recid",
......@@ -32,6 +31,7 @@ class InvenioStore(object):
* a record identified by its id.
"""
def __init__(self, host="cds.cern.ch"):
"""
Args:
......@@ -300,6 +300,12 @@ class InvenioStore(object):
"""
self._url = url
# FIXME March 30, 2020:
# * new version of inspirehep.net
# * API not yet ready
# * recommend to use old.inspirehep.net
url = url.replace("//inspirehep.net", "//old.inspirehep.net")
r = self._session.get(url, timeout=timeout, params=kwargs)
r.raise_for_status()
......
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