Skip to content

Commit 115344a

Browse files
Fix renaming bugs
1 parent f3c9190 commit 115344a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

algoliasearch/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def update_user_key(self, key, obj,
444444
max_hits_per_query=None,
445445
indexes=None):
446446
"""Use `update_api_key`"""
447-
return update_api_key(
447+
return self.update_api_key(
448448
key, obj, validity, max_queries_per_ip_per_hour,
449449
max_hits_per_query, indexes
450450
)

algoliasearch/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def get_user_key_acl(self, key):
818818
"""Use `get_api_key_acl`"""
819819
return self.get_api_key_acl(key)
820820

821-
def get_api_key_acl():
821+
def get_api_key_acl(self, key):
822822
"""Get ACL of a api key associated to this index."""
823823
path = '/keys/%s' % key
824824
return self._req(True, path, 'GET')
@@ -901,7 +901,7 @@ def update_user_key(self, key, obj, validity=None,
901901
max_queries_per_ip_per_hour=None,
902902
max_hits_per_query=None):
903903
"""Use `update_api_key`"""
904-
return self.update_user_key(
904+
return self.update_api_key(
905905
key, obj, validity, max_queries_per_ip_per_hour,
906906
max_hits_per_query
907907
)

0 commit comments

Comments
 (0)