Ignore:
Timestamp:
Apr 2, 2012, 2:14:14 PM (9 years ago)
Author:
goya
Message:

kicke les desinscrits avec is_active négatif

Location:
cpc/trunk/project/batch/amendements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/batch/amendements/compute_latest_loi.sh

    r1180 r2648  
    77perl download_amendements_loi.pl $loi > /tmp/download_amendements.log
    88
    9 for file in html/*; do
     9
     10for file in html/*; do
     11
     12        if grep "$(md5sum $file | sed 's/ .*//')" disabled.list > /dev/null 2>&1;
     13        then
     14                rm $file;
     15                continue;
     16        fi
     17
    1018        fileout=$(echo $file | sed 's/html/json/' | sed 's/\.asp/\.xml/')
    1119        perl cut_amdmt.pl $file > $fileout
  • cpc/trunk/project/batch/amendements/cut_amdmt.pl

    r2641 r2648  
    3939$string =~ s/(\<p class="presente".*)\s*\<br[\/]?\>\s*[\n]?\s*(.*)/\1, \2/g;
    4040$string =~ s/\<br\>.*\n//g;
    41 $string =~ s/&#8217;/'/g;
     41$string =~ s/(&#8217;|’)/'/g;
    4242$string =~ s/&#339;/oe/g;
    4343$string =~ s/&#8211;/-/g;
     
    107107           $output = 'expose';
    108108        }
     109        $line2 =~ s/"\s*([^"]*)\s*"/« \1 »/g;
    109110        if (!$amdmt{$output}) { $amdmt{$output} = "<p>".$line2."</p>"; }
    110111        else { $amdmt{$output} = $amdmt{$output}."<p>".$line2."</p>"; }
Note: See TracChangeset for help on using the changeset viewer.