Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
b64303b4
Commit
b64303b4
authored
May 31, 2017
by
Okhin
Browse files
fixing the qa
parent
20f90e67
Pipeline
#1082
passed with stage
in 9 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/representatives/contrib/parltrack/import_representatives.py
View file @
b64303b4
...
...
@@ -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"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment