Don't zero the archive file if no new tweets (ick)
This commit is contained in:
parent
ee6fd9c4c4
commit
21f2f84a79
1 changed files with 1 additions and 1 deletions
|
@ -109,8 +109,8 @@ module Ebooks
|
||||||
@tweets = tweets.map(&:attrs).each { |tw|
|
@tweets = tweets.map(&:attrs).each { |tw|
|
||||||
tw.delete(:entities)
|
tw.delete(:entities)
|
||||||
} + @tweets
|
} + @tweets
|
||||||
file.write(JSON.pretty_generate(@tweets))
|
|
||||||
end
|
end
|
||||||
|
file.write(JSON.pretty_generate(@tweets))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue