From 693b0d7254ce2bf949e55c3c39322f106dc2ea99 Mon Sep 17 00:00:00 2001 From: DE0CH Date: Mon, 22 Jun 2020 22:43:40 +0800 Subject: [PATCH] fix en_filter.py --- en_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en_filter.py b/en_filter.py index caf0c3d..15d3de3 100644 --- a/en_filter.py +++ b/en_filter.py @@ -24,7 +24,7 @@ def process_files(path, file_name): new_tweets = [] for tweet in tweets: try: - if tweet.get('lang', 'en'): + if tweet.get('lang', '') == 'en': new_tweets.append(tweet) except Exception as e: logging.exception(e)