Skip to content

Commit

Permalink
Merge pull request #633 from bonotake/patch_restore_referer
Browse files Browse the repository at this point in the history
古いtdrファイルを最近のrubyで復旧できるよう修正
  • Loading branch information
hsbt committed May 17, 2017
2 parents 5c786a5 + bf45a26 commit 350e5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tdiary/io/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def restore_referer( file, diaries )
fh.read.split( /\r?\n\.\r?\n/ ).each do |l|
headers, body = Default.parse_tdiary( l )
next unless body
body.each do |r|
body.lines.each do |r|
count, ref = r.chomp.split( / /, 2 )
next unless ref
diaries[headers['Date']].add_referer( ref.chomp, count.to_i )
Expand Down

0 comments on commit 350e5bf

Please sign in to comment.