mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-29 07:37:42 +00:00
15 lines
292 B
Python
15 lines
292 B
Python
|
from sqlitedict import SqliteDict
|
||
|
|
||
|
from pagermaid.config import DATA_PATH
|
||
|
|
||
|
sqlite_path = DATA_PATH / "data.sqlite"
|
||
|
sqlite = SqliteDict(sqlite_path, autocommit=True)
|
||
|
|
||
|
|
||
|
def get_sudo_list():
|
||
|
return sqlite.get("sudo_list", [])
|
||
|
|
||
|
|
||
|
def status_sudo():
|
||
|
return sqlite.get("sudo_enable", False)
|