Fix cache for lists

This commit is contained in:
Zoe Roux 2024-01-05 16:43:12 +01:00
parent a270edbde4
commit 813d998bfb
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,6 @@ class IdMapper:
self.language = language
self._tmdb = tmdb
@cache(ttl=timedelta(days=1))
async def get_show(
self, show: dict[str, MetadataID], *, required: Optional[List[str]] = None
):

View File

@ -108,6 +108,8 @@ def make_key(
if kwds:
key += kwd_mark
for item in kwds.items():
if isinstance(item[1], list):
item = (item[0], tuple(item[1]))
key += item
if typed:
key += tuple(type(v) for v in args)