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
3ae6a9d7
Commit
3ae6a9d7
authored
Feb 21, 2016
by
Nicolas Joyard
Browse files
Use official rep url as remote ID
parent
ee751adf
Changes
2
Hide whitespace changes
Inline
Side-by-side
representatives/contrib/francedata/import_representatives.py
View file @
3ae6a9d7
...
...
@@ -74,7 +74,7 @@ def _get_rep_comittees(json):
FranceDataVariants
=
{
"AN"
:
{
"chamber"
:
u
"Assemblée nationale"
,
"remote_id_field"
:
"
id
_an"
,
"remote_id_field"
:
"
url
_an"
,
"mail_domain"
:
"@assemblee-nationale.fr"
,
"off_city"
:
"Paris"
,
"off_street"
:
u
"Rue de l'Université"
,
...
...
@@ -125,7 +125,7 @@ FranceDataVariants = {
"SEN"
:
{
"chamber"
:
u
"Sénat"
,
"remote_id_field"
:
"
id
_institution"
,
"remote_id_field"
:
"
url
_institution"
,
"mail_domain"
:
"@senat.fr"
,
"off_city"
:
"Paris"
,
"off_street"
:
u
"Rue de Vaugirard"
,
...
...
representatives/contrib/francedata/tests/representatives_expected.json
View file @
3ae6a9d7
...
...
@@ -3,7 +3,7 @@
"fields"
:
{
"photo"
:
"http://www.nosdeputes.fr/depute/photo/bernard-roman"
,
"gender"
:
2
,
"remote_id"
:
"2611"
,
"remote_id"
:
"
http://www2.assemblee-nationale.fr/deputes/fiche/OMC_PA
2611"
,
"active"
:
true
,
"birth_place"
:
"Lille (Nord)"
,
"full_name"
:
"Bernard Roman"
,
...
...
@@ -17,7 +17,7 @@
"fields"
:
{
"photo"
:
"http://www.nossenateurs.fr/senateur/photo/david-assouline"
,
"gender"
:
2
,
"remote_id"
:
"assouline_david04059m"
,
"remote_id"
:
"
http://www.senat.fr/senateur/
assouline_david04059m
.html
"
,
"active"
:
true
,
"birth_place"
:
"non disponible"
,
"full_name"
:
"David Assouline"
,
...
...
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