[itaku] fix caching bug (#1842)
ItakuApi.user() would always return the first user it was called with, regardless of its 'username' argument.
This commit is contained in:
parent
124b5c6410
commit
36ead45546
@ -163,7 +163,7 @@ class ItakuAPI():
|
||||
endpoint = "/galleries/images/{}/".format(image_id)
|
||||
return self._call(endpoint)
|
||||
|
||||
@memcache()
|
||||
@memcache(keyarg=1)
|
||||
def user(self, username):
|
||||
return self._call("/user_profiles/{}/".format(username))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user