.config -> .settings

This commit is contained in:
Jörn-Michael Miehe 2022-09-04 21:46:08 +00:00
parent 2deda42194
commit 105ca9d1bd
5 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -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(

View file

@ -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}")

View file

@ -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