diff options
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 |