PagerMaid-Pyro/pagermaid/dependence/_sqlite.py
xtaodada a941308d17
Some checks failed
Docker Dev Build / docker build and publish (push) Failing after 13s
Docker Build / docker build and publish (push) Failing after 11s
🔖 Update to v1.5.0
这是一项破坏性变更,目录结构进行了重组,无核心功能变化
2024-09-28 22:01:40 +08:00

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)