Skip to content

Commit

Permalink
Fix bug in API v1.1
Browse files Browse the repository at this point in the history
If tweet-limit = 0 in streamlit interface, it only collected 1 tweet
  • Loading branch information
pournaki committed Feb 3, 2023
1 parent f33174e commit 89e51ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitterexplorer/tweetcollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run_v1(self):
print(message)
break

if self._tweet_limit != None:
if self._tweet_limit != None and self._tweet_limit != 0:
if tweet_count >= self._tweet_limit:
message = f"Collected the desired maximum of `{tweet_count}` tweets!"
if self._streamlit_interface == True:
Expand Down

0 comments on commit 89e51ca

Please sign in to comment.