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
2c3946b9
Commit
2c3946b9
authored
Jun 30, 2016
by
Nicolas Joyard
Browse files
Francedata: fix active flag on representatives
parent
43fddc67
Changes
1
Hide whitespace changes
Inline
Side-by-side
representatives/contrib/francedata/import_representatives.py
View file @
2c3946b9
...
...
@@ -152,6 +152,10 @@ class FranceDataImporter(GenericImporter):
def
import_representative_details
(
self
,
representative
,
rep_json
):
representative
.
active
=
True
if
rep_json
.
get
(
"ancien_depute"
,
0
)
==
1
:
representative
.
active
=
False
if
rep_json
.
get
(
"ancien_senateur"
,
0
)
==
1
:
representative
.
active
=
False
if
rep_json
.
get
(
"date_naissance"
):
representative
.
birth_date
=
_parse_date
(
rep_json
[
"date_naissance"
])
...
...
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