Procházet zdrojové kódy

Fix Tweet __repr__

theenglishway (time) před 7 roky
rodič
revize
390e8457ce
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      twhatter/parser/tweet.py

+ 2 - 2
twhatter/parser/tweet.py

@@ -53,8 +53,8 @@ class TweetBase(ExtractableMixin):
                 "(id={1.id}, "
                 "date={1.timestamp}, "
                 "likes={1.likes_nb}, "
-                "likes={1.retweets_nb}, "
-                "likes={1.comments_nb})>".format(self.__class__.__qualname__, self))
+                "retweets={1.retweets_nb}, "
+                "comments={1.comments_nb})>".format(self.__class__.__qualname__, self))
 
     @staticmethod
     def condition(kwargs: dict) -> bool: