doc
This commit is contained in:
parent
c93ec06925
commit
41368c7191
2 changed files with 11 additions and 2 deletions
|
@ -26,7 +26,7 @@ async def get_all_event_days(
|
||||||
days: list[int] = Depends(get_all_days),
|
days: list[int] = Depends(get_all_days),
|
||||||
) -> EventDays:
|
) -> EventDays:
|
||||||
"""
|
"""
|
||||||
Aktuelles EventDays Objekt
|
Aktueller Kalender-Zeitraum
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return EventDays.get(
|
return EventDays.get(
|
||||||
|
|
|
@ -73,6 +73,15 @@ async def api_return_image(img: Image.Image) -> StreamingResponse:
|
||||||
|
|
||||||
|
|
||||||
class EventDays(BaseModel):
|
class EventDays(BaseModel):
|
||||||
|
"""
|
||||||
|
Kenndaten eines Ereigniszeitraums:
|
||||||
|
|
||||||
|
- `first`: Datum des ersten Ereignisses
|
||||||
|
- `next`: Datum des nächsten Ereignisses
|
||||||
|
- `last`: Datum des letzten Ereignisses
|
||||||
|
- `end`: Letztes Datum Ereigniszeitraums
|
||||||
|
"""
|
||||||
|
|
||||||
first: date
|
first: date
|
||||||
next: date | None
|
next: date | None
|
||||||
last: date
|
last: date
|
||||||
|
@ -94,7 +103,7 @@ class EventDays(BaseModel):
|
||||||
closing_after: int,
|
closing_after: int,
|
||||||
) -> Self:
|
) -> Self:
|
||||||
"""
|
"""
|
||||||
foo bar
|
Kenndaten des aktuellen (laufenden oder zukünftigen) Ereigniszeitraums bestimmen
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# account for the last event, then add closing period
|
# account for the last event, then add closing period
|
||||||
|
|
Loading…
Reference in a new issue