Changeset 7595

Show
Ignore:
Timestamp:
03/07/08 00:22:20 (6 years ago)
Author:
yasuyuki
Message:

platform/pragger/: 無条件にデータ取得日時を読み取るべきところを、誤った条件で判別していたのを修正

Location:
platform/pragger
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • platform/pragger/Feed/nicovideo_rank.rb

    r7594 r7595  
    3939        raw_items.keys.sort{|a, b| a.scan(/\d+$/)[0].to_i <=> b.scan(/\d+$/)[0].to_i}.reverse.each do |key| 
    4040    begin 
    41       raw_item, uploaded_at, updated_at = raw_items[key] 
    42       next if uploaded_at > target_time 
     41      raw_item = raw_items[key] 
     42      next if raw_item['uploaded_at'] > target_time 
    4343 
    4444      # remove 'nice boat.' movie. 
    45       if updated_at < last_fetched then 
     45      if raw_item['updated_at'] < last_fetched then 
    4646        raw_items.delete key 
    4747        next 
  • platform/pragger/Publish/nicorank_save_daily.rb

    r7594 r7595  
    1212        now = Time::now 
    1313        begin 
    14                 if config['rank'] then 
    15                         open( "#{config['fetch_date']}" ) {|f| now = YAML.load( f ) } 
    16                 end 
     14    open( "#{config['fetch_date']}" ) {|f| now = YAML.load( f ) } 
    1715        rescue Errno::ENOENT 
    1816        end 
  • platform/pragger/Publish/nicovideo_rank.rb

    r7359 r7595  
    1717        now = Time::now 
    1818        begin 
    19                 if config['rank'] then 
    20                         open( "#{config['fetch_date']}" ) {|f| now = YAML.load( f ) } 
    21                 end 
     19    open( "#{config['fetch_date']}" ) {|f| now = YAML.load( f ) } 
    2220        rescue Errno::ENOENT 
    2321        end