Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
ParlementairesJS
Commits
07405b3a
Commit
07405b3a
authored
Nov 14, 2020
by
Bastien Le Querrec
Browse files
rename script to get AN's data
parent
3b66c05f
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/an-
deputes-
phones.json
→
scripts/an-phones.json
View file @
07405b3a
File moved
scripts/an
-deputes
.sh
→
scripts/an.sh
View file @
07405b3a
...
@@ -25,7 +25,7 @@ find data/an/json/acteur/ -type f | sed 's/\.json//i' | sed 's/data\/an\/json\/a
...
@@ -25,7 +25,7 @@ find data/an/json/acteur/ -type f | sed 's/\.json//i' | sed 's/data\/an\/json\/a
done
done
fi
fi
phoneChamber
=
$(
jq
-r
"map(select(.name==
\"
${
first_name
}
${
last_name
}
\"
)) | .[].phone"
"an-
deputes-
phones.json"
|
tr
-d
' .'
)
phoneChamber
=
$(
jq
-r
"map(select(.name==
\"
${
first_name
}
${
last_name
}
\"
)) | .[].phone"
"an-phones.json"
|
tr
-d
' .'
)
if
[
!
-z
"
$phoneChamber
"
]
;
then
if
[
!
-z
"
$phoneChamber
"
]
;
then
phone
=
$(
echo
"
${
phone
}
"
|
sed
"s/
${
phoneChamber
}
//g"
|
sort
)
phone
=
$(
echo
"
${
phone
}
"
|
sed
"s/
${
phoneChamber
}
//g"
|
sort
)
...
...
Write
Preview
Supports
Markdown
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