diff options
| author | 2020-07-22 14:25:47 +0200 | |
|---|---|---|
| committer | 2020-07-22 14:25:47 +0200 | |
| commit | e875142a0f937ab190208523ef17068e5988dca3 (patch) | |
| tree | 1e001dd42b9c3da8c270edcf50523bb6fa408a60 | |
| parent | Change DocCog to use the new parsing module fully. (diff) | |
Remove caching from get_symbol_embed.
The web request is already cached, and parsing doesn't much more time,
but without moving the logic around
the cache prevents the stat increase when a symbol is requested.
| -rw-r--r-- | bot/cogs/doc/cog.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bot/cogs/doc/cog.py b/bot/cogs/doc/cog.py index 6cd066f1b..05cedcaaf 100644 --- a/bot/cogs/doc/cog.py +++ b/bot/cogs/doc/cog.py @@ -183,7 +183,6 @@ class DocCog(commands.Cog): ] await asyncio.gather(*coros) - @async_cache(arg_offset=1) async def get_symbol_embed(self, symbol: str) -> Optional[discord.Embed]: """ Attempt to scrape and fetch the data for the given `symbol`, and build an embed from its contents. |