diff --git a/api/ovdashboard_api/__init__.py b/api/ovdashboard_api/__init__.py index 2baa131..b266f94 100644 --- a/api/ovdashboard_api/__init__.py +++ b/api/ovdashboard_api/__init__.py @@ -7,7 +7,7 @@ import caldav from async_lru import alru_cache from webdav3 import client as WebDAVclient -from .config import SETTINGS +from .settings import SETTINGS _WEBDAV_CLIENT = WebDAVclient.Client({ "webdav_hostname": SETTINGS.webdav_url, diff --git a/api/ovdashboard_api/main.py b/api/ovdashboard_api/main.py index 66415ad..77e1311 100644 --- a/api/ovdashboard_api/main.py +++ b/api/ovdashboard_api/main.py @@ -11,7 +11,7 @@ If run directly, uses `uvicorn` to run the app. import uvicorn from fastapi import FastAPI -from .config import SETTINGS +from .settings import SETTINGS from .routers import main_router app = FastAPI( diff --git a/api/ovdashboard_api/routers/__init__.py b/api/ovdashboard_api/routers/__init__.py index 2bc4c78..263eba4 100644 --- a/api/ovdashboard_api/routers/__init__.py +++ b/api/ovdashboard_api/routers/__init__.py @@ -6,7 +6,7 @@ This file: Main API router definition. from fastapi import APIRouter -from ..config import SETTINGS +from ..settings import SETTINGS from . import calendar, image, text main_router = APIRouter(prefix=f"/{SETTINGS.api_v1_prefix}") diff --git a/api/ovdashboard_api/routers/text.py b/api/ovdashboard_api/routers/text.py index 0bb5940..2b426ab 100644 --- a/api/ovdashboard_api/routers/text.py +++ b/api/ovdashboard_api/routers/text.py @@ -4,7 +4,7 @@ from typing import Iterator from fastapi import APIRouter, Depends from markdown import markdown -from ..config import SETTINGS +from ..settings import SETTINGS from ..dav_file import DavFile from ._common import FileNameLister, PrefixFinder, PrefixUnique diff --git a/api/ovdashboard_api/config.py b/api/ovdashboard_api/settings.py similarity index 100% rename from api/ovdashboard_api/config.py rename to api/ovdashboard_api/settings.py