diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-02-05 16:39:41 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-02-05 16:39:41 +0800 |
commit | fcc3ce60bcfa57734a51723717fe681ee4bf1327 (patch) | |
tree | c8d883a6cd2b898fed85a7f717be34de242ded25 /jimbrella/admin.py | |
parent | 14feb6a4378668d054d28a1335eacd2026b621dc (diff) |
Config format switched to .ini
Eliminated toml from dependency list
Diffstat (limited to 'jimbrella/admin.py')
-rw-r--r-- | jimbrella/admin.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 |