minor rename / doc

This commit is contained in:
Jörn-Michael Miehe 2023-09-18 23:12:32 +02:00
parent 3bf46847e9
commit b644252b9c
3 changed files with 7 additions and 7 deletions

View file

@ -12,7 +12,7 @@ from .helpers import EventDays, Random, list_images_auto, load_image, set_len
from .webdav import WebDAV from .webdav import WebDAV
async def get_all_days( async def get_all_sorted_days(
cal_cfg: CalendarConfig = Depends(get_calendar_config), cal_cfg: CalendarConfig = Depends(get_calendar_config),
) -> list[int]: ) -> list[int]:
""" """
@ -23,7 +23,7 @@ async def get_all_days(
async def get_all_event_days( async def get_all_event_days(
days: list[int] = Depends(get_all_days), days: list[int] = Depends(get_all_sorted_days),
) -> EventDays: ) -> EventDays:
""" """
Aktueller Kalender-Zeitraum Aktueller Kalender-Zeitraum
@ -31,7 +31,7 @@ async def get_all_event_days(
return EventDays.get( return EventDays.get(
today=date.today(), today=date.today(),
begin_month=12, begin_month=9,
begin_day=1, begin_day=1,
events_after=[day - 1 for day in days], events_after=[day - 1 for day in days],
closing_after=90, closing_after=90,
@ -40,7 +40,7 @@ async def get_all_event_days(
async def get_all_parts( async def get_all_parts(
cfg: Config = Depends(get_config), cfg: Config = Depends(get_config),
days: list[int] = Depends(get_all_days), days: list[int] = Depends(get_all_sorted_days),
) -> dict[int, str]: ) -> dict[int, str]:
""" """
Lösung auf vorhandene Tage aufteilen Lösung auf vorhandene Tage aufteilen
@ -68,7 +68,7 @@ async def get_all_parts(
async def get_all_auto_image_names( async def get_all_auto_image_names(
days: list[int] = Depends(get_all_days), days: list[int] = Depends(get_all_sorted_days),
images: list[str] = Depends(list_images_auto), images: list[str] = Depends(list_images_auto),
) -> dict[int, str]: ) -> dict[int, str]:
""" """

View file

@ -79,7 +79,7 @@ class EventDays(BaseModel):
- `first`: Datum des ersten Ereignisses - `first`: Datum des ersten Ereignisses
- `next`: Datum des nächsten Ereignisses - `next`: Datum des nächsten Ereignisses
- `last`: Datum des letzten Ereignisses - `last`: Datum des letzten Ereignisses
- `end`: Letztes Datum Ereigniszeitraums - `end`: Letztes Datum des Ereigniszeitraums
""" """
first: date first: date

View file

@ -82,7 +82,7 @@ async def get_config_model(
"image": { "image": {
"size": 500, # TODO "size": 500, # TODO
"border": 30, # TODO "border": 30, # TODO
"fonts": [{"file": cfg.server.font, "size": 50}], "fonts": [{"file": cfg.server.font, "size": 50}], # TODO
}, },
"webdav": { "webdav": {
"url": SETTINGS.webdav.url, "url": SETTINGS.webdav.url,