mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 04:11:08 -05:00
Don't zero the archive file if no new tweets (ick)
This commit is contained in:
@@ -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
|
||||||
|
end
|
||||||
file.write(JSON.pretty_generate(@tweets))
|
file.write(JSON.pretty_generate(@tweets))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|||||||
Reference in New Issue
Block a user