Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
django-representatives
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Political Memory
django-representatives
Commits
3ae6a9d7
Commit
3ae6a9d7
authored
Feb 21, 2016
by
Nicolas Joyard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use official rep url as remote ID
parent
ee751adf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
representatives/contrib/francedata/import_representatives.py
representatives/contrib/francedata/import_representatives.py
+2
-2
representatives/contrib/francedata/tests/representatives_expected.json
...es/contrib/francedata/tests/representatives_expected.json
+2
-2
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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