Changeset 7597 for platform/pragger
- Timestamp:
- 03/07/08 00:30:18 (5 years ago)
- Files:
-
- 1 modified
-
platform/pragger/Feed/nicovideo_rank.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/pragger/Feed/nicovideo_rank.rb
r7595 r7597 35 35 end 36 36 37 target_time = last_fetched - (target_hour * 60 * 60 - 1200)37 target_time = last_fetched - (target_hour * 60 * 60) 38 38 39 39 raw_items.keys.sort{|a, b| a.scan(/\d+$/)[0].to_i <=> b.scan(/\d+$/)[0].to_i}.reverse.each do |key| … … 43 43 44 44 # remove 'nice boat.' movie. 45 if raw_item['updated_at'] < last_fetchedthen45 if raw_item['updated_at'] < (last_fetched - 3599) then 46 46 raw_items.delete key 47 47 next … … 55 55 end 56 56 end 57 #open( "#{config['rank_data']}.dump", 'w' ) do |f|58 #YAML.dump(raw_items, f)59 #end57 open( "#{config['rank_data']}.dump", 'w' ) do |f| 58 YAML.dump(raw_items, f) 59 end 60 60 open(config['root_dir'] + last_fetched.strftime("/%Y/%m/%d/") + "rank.yaml", 'w' ) do |f| 61 61 YAML.dump(rank_items, f)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)