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

Update factory.add_conference_data to fix a bug

parent 1e486bc6
......@@ -151,7 +151,7 @@ def add_conference_data(recjson):
# Add conference data to the recjson (inspirehep.net)
#
elif host in INS:
address = confjson["addresses"][0]
address = [el for el in confjson["addresses"] if el.get("country")][0]
start, end = confjson["opening_date"], confjson["closing_date"]
ds = datetime.strptime(start, "%Y-%m-%d")
......
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