Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
irfm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
regardscitoyens
irfm
Commits
b2a49095
Commit
b2a49095
authored
May 26, 2020
by
Tangui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout des dates d'ordonnance
parent
ae1d6f11
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1073 additions
and
1070 deletions
+1073
-1070
tools/telerecours/ordonnances.csv
tools/telerecours/ordonnances.csv
+537
-537
tools/telerecours/ordonnances_attachment.csv
tools/telerecours/ordonnances_attachment.csv
+533
-531
tools/telerecours/retrieve_ordonnance.sh
tools/telerecours/retrieve_ordonnance.sh
+3
-2
No files found.
tools/telerecours/ordonnances.csv
View file @
b2a49095
This diff is collapsed.
Click to expand it.
tools/telerecours/ordonnances_attachment.csv
View file @
b2a49095
This source diff could not be displayed because it is too large. You can
view the blob
instead.
tools/telerecours/retrieve_ordonnance.sh
View file @
b2a49095
...
...
@@ -18,10 +18,11 @@ ls requete_*json | while read json ; do
notif
=
$(
json_pp <
$json
|
grep
AccuseNotification
>
/dev/null
&&
echo
"NotifOK"
)
;
requete
=
$(
json_pp <
$json
|
grep
numeroRequete |
awk
-F
'"'
'{print $4}'
)
;
defenseur
=
$(
cat
$json
|
sed
's/.*defendeur":"//'
|
sed
's/".*//'
)
echo
$rid
";"
$id
";"
$file
";"
$requete
";"
$defenseur
";"
$notif
;
date
=
$(
json_pp <
$json
|
grep
-B
10
"Notification d"
|
grep
dateEvt |
awk
-F
'"'
'{print $4}'
)
echo
$rid
";"
$id
";"
$file
";"
$requete
";"
$defenseur
";"
$date
";"
$notif
;
done
>
../ordonnances.csv
cat
ordonnances.csv |
awk
-F
';'
'{if ( $
6
== "NotifOK" && $3)
cat
ordonnances.csv |
awk
-F
';'
'{if ( $
7
== "NotifOK" && $3)
print "wget -O ordonnance_"$1"_"$4".pdf --load-cookies=../telerecours.cookies " \
"--post-data='
"'"
'{\"origin\": \"TR_PJ_COPY\",\"typeEvent\": null,\"fileName\": \""$3"_doc.pdf\"}'
"'"
' " \
"--header=\"content-type: application/json\" " \
...
...
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