Commit 1ce7d64d authored by okhin's avatar okhin 🚴

Merge branch '185-import-process-crashes-with-to-bogus-json-entry' into 'master'

Resolve "Import process crashes with to "bogus" json entry"

Closes #185

See merge request !208
parents 01e6ecb9 b64303b4
Pipeline #1084 passed with stage
in 13 minutes and 7 seconds
......@@ -91,6 +91,11 @@ class ParltrackImporter(GenericImporter):
return
changed = False
# Issue 185. We must have a Birth date for our mep, to allow import
# and slugifying stuff.
if "Birth" not in mep_json:
mep_json["Birth"] = {"date": "9999-01-01T00:00:00", "place": ""}
slug = slugify('%s-%s' % (
mep_json["Name"]["full"] if 'full' in mep_json["Name"]
else mep_json["Name"]["sur"] + " " + mep_json["Name"]["family"],
......
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