[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:
Mike Fährmann
2022-07-01 20:50:38 +02:00
parent 124b5c6410
commit 36ead45546

View File

@@ -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))