Skip to content

Commit

Permalink
[Units] Ignore aiohttp_session for async_cache usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Aug 15, 2023
1 parent d74b042 commit 7e39997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions units/wikis.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __hash__(self) -> int:
return hash(self.url)


@async_cache
@async_cache(ignore_kwargs = "aiohttp_session")
async def get_api_endpoint(
url: str, *, aiohttp_session: aiohttp.ClientSession | None = None
) -> str:
Expand Down Expand Up @@ -317,7 +317,7 @@ async def get_random_article(
)[0]


@async_cache
@async_cache(ignore_kwargs = "aiohttp_session")
async def get_wiki_info(
url: str, *, aiohttp_session: aiohttp.ClientSession | None = None
) -> WikiInfo:
Expand Down

0 comments on commit 7e39997

Please sign in to comment.