...
|
...
|
@@ -692,24 +692,24 @@ if test "$depute" = $true_flag; then
|
692
|
692
|
fi
|
693
|
693
|
fi
|
694
|
694
|
|
695
|
|
-if test "$dossier" = $true_flag; then
|
696
|
|
- last=$(dernier_scrutin_public)
|
697
|
|
- if test -z "$dossier_value"; then
|
698
|
|
- IFS=$'\n'
|
699
|
|
- select dossier in $(sqlite_request "select url from url" | sed 's,^.*/dossiers/,,; s/_/ /g; s/.asp$//'); do
|
700
|
|
- if test -n "$dossier"; then
|
701
|
|
- seq="sqlite_request \"select num from scrutins inner join url on url.id = scrutins.url where url.url like '%/dossiers/${dossier// /_}%' order by num asc\""
|
702
|
|
- qty=$(sqlite_request "select count(num) from scrutins inner join url on url.id = scrutins.url where url.url like '%/dossiers/${dossier// /_}%' order by num asc")
|
703
|
|
- break
|
704
|
|
- fi
|
705
|
|
- done
|
706
|
|
- IFS=$IFS_
|
707
|
|
- else
|
708
|
|
- seq="sqlite_request \"select num from scrutins inner join url on url.id = scrutins.url where url.id is $dossier_value order by num asc\""
|
709
|
|
- qty=$(sqlite_request "select count(num) from scrutins inner join url on url.id = scrutins.url where url.id is $dossier_value order by num asc")
|
710
|
|
- dossier=$(sqlite_request "select url from url where id is $dossier_value" | sed 's,^.*/dossiers/,,; s/_/ /g; s/.asp$//')
|
711
|
|
- fi
|
712
|
|
-fi
|
713
|
|
-
|
|
695
|
+#if test "$dossier" = $true_flag; then
|
|
696
|
+# last=$(dernier_scrutin_public)
|
|
697
|
+# if test -z "$dossier_value"; then
|
|
698
|
+# IFS=$'\n'
|
|
699
|
+# select dossier in $(sqlite_request "select titre from dossiers"); do
|
|
700
|
+# if test -n "$dossier"; then
|
|
701
|
+# qty=$(sqlite_request "select num from scrutins
|
|
702
|
+# inner join url on dossiers.id = scrutins.dossier
|
|
703
|
+# where dossiers.titre = \"$dossier\" order by num asc'")
|
|
704
|
+# break
|
|
705
|
+# fi
|
|
706
|
+# done
|
|
707
|
+# IFS=$IFS_
|
|
708
|
+# else
|
|
709
|
+# seq="sqlite_request \"select num from scrutins inner join url on url.id = scrutins.url where url.id is $dossier_value order by num asc\""
|
|
710
|
+# qty=$(sqlite_request "select count(num) from scrutins inner join url on url.id = scrutins.url where url.id is $dossier_value order by num asc")
|
|
711
|
+# dossier=$(sqlite_request "select url from url where id is $dossier_value" | sed 's,^.*/dossiers/,,; s/_/ /g; s/.asp$//')
|
|
712
|
+# fi
|
|
713
|
+#fi
|
714
|
714
|
update_database
|
715
|
715
|
write_comparaison
|