Don't zero the archive file if no new tweets (ick)

This commit is contained in:
Jaiden Mispy 2016-01-15 15:59:16 -08:00
parent ee6fd9c4c4
commit 21f2f84a79

View file

@ -109,8 +109,8 @@ module Ebooks
@tweets = tweets.map(&:attrs).each { |tw|
tw.delete(:entities)
} + @tweets
file.write(JSON.pretty_generate(@tweets))
end
file.write(JSON.pretty_generate(@tweets))
end
end
end