From 105ca9d1bda11c22ddcdd930ca0e6b58133ec131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sun, 4 Sep 2022 21:46:08 +0000 Subject: [PATCH] .config -> .settings --- api/ovdashboard_api/__init__.py | 2 +- api/ovdashboard_api/main.py | 2 +- api/ovdashboard_api/routers/__init__.py | 2 +- api/ovdashboard_api/routers/text.py | 2 +- api/ovdashboard_api/{config.py => settings.py} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename api/ovdashboard_api/{config.py => settings.py} (100%) 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