From fcc3ce60bcfa57734a51723717fe681ee4bf1327 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sat, 5 Feb 2022 16:39:41 +0800 Subject: Config format switched to .ini Eliminated toml from dependency list --- jimbrella/admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jimbrella/admin.py') diff --git a/jimbrella/admin.py b/jimbrella/admin.py index 1385d0a..b150e3d 100644 --- a/jimbrella/admin.py +++ b/jimbrella/admin.py @@ -6,13 +6,13 @@ from .umbrellas import Umbrellas from .admin_log import AdminLog from .users import Users from .exceptions import * -from .config import * +from .config import config from .utils import human_datetime, human_timedelta, CST bp = Blueprint("admin", __name__, url_prefix="/admin") -db = Umbrellas(DATABASE_PATH) -users = Users(DATABASE_PATH) -admin_log = AdminLog(ADMIN_LOG_PATH) +db = Umbrellas(config.get("general", "db_path")) +users = Users(config.get("general", "db_path")) +admin_log = AdminLog(config.get("logging", "admin_log_path")) @bp.before_request -- cgit v1.2.3