Update tweepy/models.py
authorTaro Sato <okomestudio@gmail.com>
Sun, 10 Jan 2021 02:40:55 +0000 (18:40 -0800)
committerGitHub <noreply@github.com>
Sun, 10 Jan 2021 02:40:55 +0000 (18:40 -0800)
Co-authored-by: Harmon <Harmon758@gmail.com>
tweepy/models.py

index ba4a6847a845edd5c37c00848d7491727a93bfea..45fd08f4e05d7366c6328f4292325b60a39ad993 100644 (file)
@@ -197,7 +197,7 @@ class User(Model):
                                            **kwargs)
 
     def lists_ownerships(self, *args, **kwargs):
-        return self._api.lists_ownerships(user=self.screen_name,
+        return self._api.lists_ownerships(user_id=self.id,
                                           *args,
                                           **kwargs)