Skip to content

Commit

Permalink
exe
Browse files Browse the repository at this point in the history
  • Loading branch information
reysiregar authored Aug 11, 2021
1 parent eabb215 commit 50a1fd3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cache/admins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, List, Union
from typing import Dict, List


admins: Dict[int, List[int]] = {}
Expand All @@ -8,8 +8,7 @@ def set(chat_id: int, admins_: List[int]):
admins[chat_id] = admins_


def get(chat_id: int) -> Union[List[int], bool]:
def get(chat_id: int) -> List[int]:
if chat_id in admins:
return admins[chat_id]

return False
return []

0 comments on commit 50a1fd3

Please sign in to comment.