Commit 20f90e67 authored by okhin's avatar okhin 🚴

using a placeholder Birth in case its missing in representatives

parent 01e6ecb9
Pipeline #1081 failed with stage
in 10 minutes and 36 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 not "Birth" 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