mirror of
https://github.com/deadcxap/YandexMusicDiscordBot.git
synced 2026-01-10 09:41:46 +03:00
fix: Remove lru_cache.
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import logging
|
import logging
|
||||||
from functools import lru_cache
|
|
||||||
from typing import cast, Final
|
from typing import cast, Final
|
||||||
from math import ceil
|
from math import ceil
|
||||||
from os import getenv
|
from os import getenv
|
||||||
@@ -257,7 +256,6 @@ async def _generate_playlist_embed(playlist: Playlist) -> Embed:
|
|||||||
|
|
||||||
return embed
|
return embed
|
||||||
|
|
||||||
@lru_cache()
|
|
||||||
async def _get_average_color_from_url(url: str) -> int:
|
async def _get_average_color_from_url(url: str) -> int:
|
||||||
"""Get image from url and calculate its average color to use in embeds.
|
"""Get image from url and calculate its average color to use in embeds.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user