Showing 1 changed files with 2 additions and 2 deletions
+2 -2
analyse-votes-AN
... ...
@@ -268,7 +268,7 @@ EOcontent
268 268
         write_cell texte "${title//\'/'}"
269 269
         write_cell texte "$adoption"
270 270
 
271
-        for typevote in 0 1 2 3; do
271
+        for typevote in $(seq 0 $(( $(wc -w <<< $typevotes) - 1 ))); do
272 272
             vote_cible[$typevote]=$(sqlite_request "select
273 273
                                         count(député)
274 274
                                      from
... ...
@@ -311,7 +311,7 @@ EOcontent
311 311
             write_cell nombre $loyaute
312 312
         fi
313 313
 
314
-        for typevote in 0 1 2 3; do
314
+        for typevote in $(seq 0 $(( $(wc -w <<< $typevotes) - 1 ))); do
315 315
             write_cell nombre ${vote_cible[$typevote]}
316 316
             for (( g = 1; g < ${#groupe_id[@]}; g++ )); do
317 317
                 votes=$(sqlite_request "select