premiere implementation en python
- il n'y a pas de departage des candidats ayant obtenu la même mention - aucune certitude que l'algorithme est bien respecté.
This commit is contained in:
22
samples/check.sh
Executable file
22
samples/check.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $# > 0 ]]
|
||||
then
|
||||
vote=$1
|
||||
fi
|
||||
|
||||
if [[ -z $vote ]]
|
||||
then
|
||||
echo "[ERROR] numéro de vote manquant ( ex 1 pour 1.json )"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
json=~/clients/artlog/artisanlogiciel.code/artlog_jsontools/build/json
|
||||
|
||||
json_file=$vote.json
|
||||
json_indent_file=$vote.indent.json
|
||||
echo "generating $json_indent_file"
|
||||
|
||||
$json indent=spaces:2 -- $json_file > $json_indent_file
|
||||
|
||||
python3 parse_sample.py $json_indent_file
|
||||
Reference in New Issue
Block a user