json artlog tool optional
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
{
|
{
|
||||||
"G":1,
|
"G":1,
|
||||||
"C":2,
|
"C":2,
|
||||||
"D":3,
|
"D":3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"A":1,
|
"A":1,
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"A":1,
|
"A":1,
|
||||||
"D":2,
|
"D":2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"A":5,
|
"A":5,
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
"D":3
|
"D":3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"A":4,
|
"A":4
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,12 +11,15 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
json=~/clients/artlog/artisanlogiciel.code/artlog_jsontools/build/json
|
|
||||||
|
|
||||||
json_file=$vote.json
|
json_file=$vote.json
|
||||||
json_indent_file=$vote.indent.json
|
json=~/clients/artlog/artisanlogiciel.code/artlog_jsontools/build/json
|
||||||
echo "generating $json_indent_file"
|
|
||||||
|
if [[ -x $json ]]
|
||||||
|
then
|
||||||
|
json_indent_file=$vote.indent.json
|
||||||
|
echo "generating $json_indent_file"
|
||||||
|
$json indent=spaces:2 -- $json_file > $json_indent_file
|
||||||
|
json=$json_file
|
||||||
|
fi
|
||||||
|
|
||||||
$json indent=spaces:2 -- $json_file > $json_indent_file
|
python3 parse_sample.py $json_file
|
||||||
|
|
||||||
python3 parse_sample.py $json_indent_file
|
|
||||||
|
|||||||
Reference in New Issue
Block a user