Compare commits
No commits in common. "c0c00a075950f08791f0b3a6555d93e2218c0821" and "945844712f6ce8f64ecac2c8ab1fa662fa39be52" have entirely different histories.
c0c00a0759
...
945844712f
1 changed files with 2 additions and 4 deletions
6
main.py
6
main.py
|
@ -107,8 +107,8 @@ class Listener(StreamingClient):
|
|||
if keys["VERBOSE"]:
|
||||
print("Thread...", end=" ")
|
||||
base_tweet = self.client.get_tweet(id=tweet.conversation_id, tweet_fields="author_id", user_auth=True).data
|
||||
# If we have an author ID, the author account is in private
|
||||
if base_tweet.author_id:
|
||||
base_author = self._get_user(base_tweet.author_id)
|
||||
if base_author.protected:
|
||||
if keys["VERBOSE"]:
|
||||
print("Auteur du premier tweet en privé, pas de réponses.")
|
||||
return
|
||||
|
@ -307,8 +307,6 @@ def create_rules(tracked_users: list[str]) -> list[str]:
|
|||
# Buffer
|
||||
buffer = repeat
|
||||
|
||||
tracked_users.sort()
|
||||
|
||||
# Track users
|
||||
for user in tracked_users:
|
||||
# Check if the rule don't exceeds the maximum length of a rule (512)
|
||||
|
|
Reference in a new issue