Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 137a175

Browse files
committed
fixes error in GetMutesIDsPaged where the wrong params were being referenced
1 parent 9fb473e commit 137a175

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

twitter/api.py

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,14 +1669,13 @@ def _GetBlocksMutesPaged(self,
16691669
action (str):
16701670
Either 'list' or 'ids' depending if you want to return fully-hydrated
16711671
twitter.User objects or a list of user IDs as ints.
1672-
cursor:
1672+
cursor (int, optional):
16731673
Should be set to -1 if you want the first page, thereafter denotes
16741674
the page of users that you want to return.
1675-
skip_status:
1675+
skip_status (bool, optional):
16761676
If True the statuses will not be returned in the user items.
1677-
[Optional]
1678-
include_entities:
1679-
When True, the user entities will be included. [Optional]
1677+
include_entities (bool, optional):
1678+
When True, the user entities will be included.
16801679
16811680
Returns:
16821681
next_cursor, previous_cursor, list of twitter.User instances,
@@ -1722,11 +1721,10 @@ def GetBlocks(self,
17221721
blocked by the currently authenticated user.
17231722
17241723
Args:
1725-
skip_status:
1724+
skip_status (bool, optional):
17261725
If True the statuses will not be returned in the user items.
1727-
[Optional]
1728-
include_entities:
1729-
When True, the user entities will be included. [Optional]
1726+
include_entities (bool, optional):
1727+
When True, the user entities will be included.
17301728
17311729
Returns:
17321730
A list of twitter.User instances, one for each blocked user.
@@ -1755,14 +1753,13 @@ def GetBlocksPaged(self,
17551753
blocked by the currently authenticated user.
17561754
17571755
Args:
1758-
cursor:
1756+
cursor (int, optional):
17591757
Should be set to -1 if you want the first page, thereafter denotes
17601758
the page of blocked users that you want to return.
1761-
skip_status:
1759+
skip_status (bool, optional):
17621760
If True the statuses will not be returned in the user items.
1763-
[Optional]
1764-
include_entities:
1765-
When True, the user entities will be included. [Optional]
1761+
include_entities (bool, optional):
1762+
When True, the user entities will be included.
17661763
17671764
Returns:
17681765
next_cursor, previous_cursor, list of twitter.User instances,
@@ -1854,9 +1851,9 @@ def GetMutes(self,
18541851
return result
18551852

18561853
def GetMutesPaged(self,
1857-
cursor=-1,
1858-
skip_status=False,
1859-
include_entities=False):
1854+
cursor=-1,
1855+
skip_status=False,
1856+
include_entities=False):
18601857
""" Fetch a page of the users (as twitter.User instances)
18611858
muted by the currently authenticated user.
18621859
@@ -1926,8 +1923,7 @@ def GetMutesIDsPaged(self,
19261923
return self._GetBlocksMutesPaged(endpoint='mute',
19271924
action='ids',
19281925
cursor=cursor,
1929-
skip_status=skip_status,
1930-
include_entities=include_entities)
1926+
stringify_ids=stringify_ids)
19311927

19321928
def _BlockMute(self,
19331929
action,

0 commit comments

Comments
 (0)