From ade1d3a62956cd683ff1ccbf38c3241b222bec85 Mon Sep 17 00:00:00 2001 From: Ashish Karel Date: Sun, 25 Feb 2018 16:54:02 +0530 Subject: [PATCH] Update tweets-to-mongo.py when batch is set to True, export_tweets_bulk() should be called instead! --- tweets-to-mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweets-to-mongo.py b/tweets-to-mongo.py index fbac05b..6673317 100644 --- a/tweets-to-mongo.py +++ b/tweets-to-mongo.py @@ -96,7 +96,7 @@ def export_tweets_bulk(fh, db): if args.batch == 'True': print 'Exporting tweets to MongoDB' - export_tweets(args.file, db) + export_tweets_bulk(args.file, db) print 'Done'