Commit b64303b4 authored by okhin's avatar okhin 🚴

fixing the qa

parent 20f90e67
Pipeline #1082 passed with stage
in 9 minutes and 29 seconds
......@@ -93,8 +93,8 @@ class ParltrackImporter(GenericImporter):
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":""}
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"]
......
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