Changeset 2663


Ignore:
Timestamp:
Apr 20, 2012, 12:48:58 AM (9 years ago)
Author:
komodo
Message:

gestion update quotidien

Location:
cpc/branches/senat/project/batch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/branches/senat/project/batch/commission/download_commission.pl

    r2532 r2663  
    77
    88#Prend en compte uniquement les pages de commission qui ont changé depuis moins de x heures (-1 pour désactiver)
    9 $since_hour = shift || 24;
     9$since_hour = shift || 48;
    1010
    1111mkdir "html" unless -e "html";
     
    3535        if ($t->[1]{href} =~ /compte-rendu-commissions/ || $t->[1]{href} =~ /\d{6}\d*.html/) {
    3636            $curl =  $t->[1]{href};
    37             next if ($curl =~ /\/presse\// || curl =~ /prog.html/);
     37            $curl =~ s/#[^\/]*$//;
     38            next if ($curl =~ /\/presse\// || $curl =~ /prog.html/);
    3839            next if ($url{$curl});
    3940            $uriurl = $curl;
  • cpc/branches/senat/project/batch/download_elements_dossiers.pl

    r2533 r2663  
    1313
    1414#Annee des dossiers à télécharger
    15 $year = shift || $lastyear;
    16 $since_hour = shift || 24;
     15$since_hour = shift || 48;
     16$tmpyear = $lastyear;
     17$tmpyear-- if ($month[0] == 10);
     18$year = shift || $tmpyear;
    1719$verbose = shift || 0;
    1820
Note: See TracChangeset for help on using the changeset viewer.