Skip to content

Commit 7dc114a

Browse files
committed
Added support for 'offset'
1 parent 10d8f5c commit 7dc114a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sc2ranks/core.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def validate(self, data):
6565
elif type(data).__name__ == 'list':
6666
return [Sc2RanksResponse(datum) for datum in data]
6767

68-
def search_for_character(self, region, name, search_type='exact'):
68+
def search_for_character(self, region, name, search_type='exact', offset=0):
6969
"""
7070
Allows you to perform small searches, useful if you want to hookup an
7171
IRC bot or such. Only returns the first 10 names. Search is
@@ -80,9 +80,10 @@ def search_for_character(self, region, name, search_type='exact'):
8080
Default='exact'
8181
"""
8282
return self.validate(
83-
data=self.api_fetch('search/%s/%s/%s' % (search_type,
83+
data=self.api_fetch('search/%s/%s/%s/%i' % (search_type,
8484
region.lower(),
85-
name)))
85+
name,
86+
offset)))
8687

8788
def search_for_profile(self, region, name, search_type='1t', search_subtype='division', value='Division'):
8889
"""

0 commit comments

Comments
 (0)