Skip to content

Commit

Permalink
fix en_filter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DE0CH committed Jun 22, 2020
1 parent 40f0e4e commit 693b0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 693b0d7

Please sign in to comment.