Skip to content
Snippets Groups Projects
Commit 1e73177c authored by Tim's avatar Tim
Browse files

fix dump.rb bug

parent 36b42c27
No related branches found
No related tags found
No related merge requests found
......@@ -59,12 +59,12 @@ end
def stream_blocks_to_file n1, n2, file
raise "File already exists" if File.exists?(file)
File.open(file, 'w') do |f|
stream_blocks_from_ws(n1, n2){|r| f.write(r[1]+"\n")}
stream_blocks_from_ws(n1, n2){|r| f.write(r+"\n")}
end
end
# Save all blocks up to 12M in batches of 1M
(1..12).each do |mil|
(1..13).each do |mil|
n1 = (mil - 1) * 1000000 + 1
n2 = mil * 1000000
stream_blocks_to_file n1, n2, "#{n2}.json.lst"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment