Showing 1 changed files with 1 additions and 1 deletions
+1 -1
analyse-votes-AN
... ...
@@ -54,7 +54,7 @@ for scrutin in $(seq $last); do
54 54
 
55 55
     title=$(sed -rn '/Analyse du scrutin n° '$scrutin'/n; s,^.*<h3 class="president-title">(.+).</h3>,\1,p' $tempfile | sed 's/;//g; s/[ \t][ \t]+/ /g')
56 56
     date=$(sed -rn 's,^.*<h1 class="">Analyse du scrutin n° '$scrutin'<br/>(.+) </h1>,\1,p' $tempfile)
57
-    grep -q "L'assemblée nationale a adopté." $tempfile && adoption='oui' || adoption='non'
57
+    adoption=$(sed -rn 's,^.*<p class="annonce"><span class="annoncevote">(.+).</span></p>.*$,\1,p' $tempfile)
58 58
 
59 59
     echo -n "$scrutin;$date;$title;$adoption;" >> "$result"
60 60