mirror of
https://github.com/PaiGramTeam/GramCore.git
synced 2024-11-16 03:55:27 +00:00
✨ Add get all cookies by region
This commit is contained in:
parent
b540527c68
commit
1287afc9c5
@ -36,6 +36,9 @@ class CookiesService(BaseService):
|
||||
async def delete(self, cookies: Cookies) -> None:
|
||||
return await self._repository.delete(cookies)
|
||||
|
||||
async def get_all_by_region(self, region: RegionEnum) -> List[Cookies]:
|
||||
return await self._repository.get_all_by_region(region)
|
||||
|
||||
|
||||
class PublicCookiesService:
|
||||
def __init__(self, cookies_repository: CookiesRepository, public_cookies_cache: PublicCookiesCache):
|
||||
|
Loading…
Reference in New Issue
Block a user