From 852fb265137ed4318b66bb78bbe3946fe444dc90 Mon Sep 17 00:00:00 2001 From: inkhog <57040318+inkhog@users.noreply.github.com> Date: Sat, 27 Aug 2022 02:33:01 +0800 Subject: [PATCH] Update search_tweets.py fix a bug that cause the param "results_per_file" cannot be loaded as "int" when writing result stream --- tools/search_tweets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/search_tweets.py b/tools/search_tweets.py index 1af4e8a..7919b55 100644 --- a/tools/search_tweets.py +++ b/tools/search_tweets.py @@ -194,7 +194,7 @@ def main(): if config_dict.get("filename_prefix") is not None: stream = write_result_stream(rs, filename_prefix=config_dict.get("filename_prefix"), - results_per_file=config_dict.get("results_per_file")) + results_per_file=stream_params.get("results_per_file")) else: stream = rs.stream()