... | ... |
@@ -449,27 +449,6 @@ fi |
449 | 449 |
|
450 | 450 |
true_flag=$(mktemp --dry-run XXXXX) |
451 | 451 |
|
452 |
-OPTS=$( getopt -l no-db-update,\ |
|
453 |
- db-update-only,\ |
|
454 |
- cible:,\ |
|
455 |
- ref:,\ |
|
456 |
- député:,\ |
|
457 |
- premier-scrutin:,\ |
|
458 |
- dernier-scrutin:,\ |
|
459 |
- période:,\ |
|
460 |
- liste-dossiers,\ |
|
461 |
- liste-députés,\ |
|
462 |
- dossiers,\ |
|
463 |
- dossier:,\ |
|
464 |
- conf:,\ |
|
465 |
- database:,\ |
|
466 |
- progrès-génération:\ |
|
467 |
- progrès-update:,\ |
|
468 |
- help \ |
|
469 |
- -- "$@" ) |
|
470 |
- |
|
471 |
-eval set --$OPTS |
|
472 |
- |
|
473 | 452 |
while [[ $# -gt 0 ]]; do |
474 | 453 |
case "$1" in |
475 | 454 |
"--no-db-update") |
... | ... |
@@ -692,24 +671,5 @@ if test "$depute" = $true_flag; then |
692 | 671 |
fi |
693 | 672 |
fi |
694 | 673 |
|
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 | 674 |
update_database |
715 | 675 |
write_comparaison |