From fce1451cfc63d8c14d49c715f282d14d2df3c8fe Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 25 Oct 2021 14:50:03 +0700 Subject: [PATCH] hm --- storage/__init__.py | 5 ----- storage/admins.py | 17 ----------------- 2 files changed, 22 deletions(-) delete mode 100644 storage/__init__.py delete mode 100644 storage/admins.py diff --git a/storage/__init__.py b/storage/__init__.py deleted file mode 100644 index 0bbe572..0000000 --- a/storage/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright (C) 2021 By VeezMusicProject - -from cache.admins import admins, get, set - -__all__ = ["admins", "get", "set"] diff --git a/storage/admins.py b/storage/admins.py deleted file mode 100644 index 3e0966f..0000000 --- a/storage/admins.py +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2021 By VeezMusicProject - -from typing import Dict, List -from config import Veez - - -admins: Dict[int, List[int]] = {} - - -def set(chat_id: int, admins_: List[int]): - admins[chat_id] = admins_ - - -def get(chat_id: int) -> List[int]: - if chat_id in admins: - return admins[chat_id] - return []