Changeset 117

Show
Ignore:
Timestamp:
09/25/06 19:31:18 (2 years ago)
Author:
evdb
Message:

fix so that 404 does not stop scraping downwards

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/PrlMnks/Daemon.pm

    r115 r117  
    2525 
    2626        my $success_count = 0; 
    27         $self->debug("high: '$high_id', low: '$low_id'\n"); 
    2827 
    2928        if ( $self->fetch_node_by_id($high_id) ) { 
    30             $self->debug("Fetched $high_id\n"); 
     29            $self->debug("Fetched high_id $high_id\n"); 
    3130            $success_count++; 
    3231            $high_id++; 
    3332        } 
    3433 
    35         if ( $low_id && $self->fetch_node_by_id($low_id) ) { 
    36             $self->debug("Fetched $low_id\n"); 
    37             $success_count++
    38             $low_id = PrlMnks::Node->get_missing_id_under($low_id); 
     34        if ($low_id) { 
     35            $success_count++ if $self->fetch_node_by_id($low_id); 
     36            $self->debug("Fetched low_id $low_id\n")
     37            $low_id = PrlMnks::Node->get_missing_id_under($low_id); 
    3938        } 
    4039