.config -> .settings
This commit is contained in:
parent
2deda42194
commit
105ca9d1bd
5 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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}")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue