Compare commits

..

No commits in common. "af33203932f9ec0ade3f93962ba1181f9d1b111b" and "d8fa4e1dcbd5a3c61f9242aabcf579255af6ecd5" have entirely different histories.

4 changed files with 936 additions and 1112 deletions

View File

@ -27,8 +27,3 @@ app.add_middleware(
locale.setlocale(locale.LC_TIME, locale.getlocale())
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, debug=True)

View File

@ -6,7 +6,6 @@ from datetime import date, datetime, timedelta, timezone
from typing import Dict, List, NamedTuple
import aiohttp
import pytz
import recurring_ical_events
import yaml
@ -138,8 +137,6 @@ def get_events_from_calendar(cal: Calendar) -> List[CalendarEvent]:
all_day_event = True
start = datetime.combine(start, datetime.min.time(), tzinfo=get_tzinfo())
start = start.astimezone(pytz.timezone("Europe/Berlin"))
end = vevent.get("DTEND", None)
if end is not None:
end = end.dt
@ -148,8 +145,6 @@ def get_events_from_calendar(cal: Calendar) -> List[CalendarEvent]:
all_day_event = True
end = datetime.combine(end, datetime.max.time(), tzinfo=get_tzinfo())
end = end.astimezone(pytz.timezone("Europe/Berlin"))
def get_str(key: str):
value = vevent.get(key, None)

2035
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ include = [
package-mode = false
[tool.poetry.dependencies]
python = "^3.10"
python = "^3.8"
icalendar = "^4.0.9"
fastapi = "^0.75.0"
uvicorn = {extras = ["standard"], version = "^0.17.6"}
@ -19,7 +19,6 @@ aiohttp = {extras = ["speedups"], version = "^3.8.1"}
recurring-ical-events = "^1.0.1-beta.0"
pyyaml = "^6.0"
asyncache = "^0.3.1"
pytz = "^2025.1"
[tool.poetry.dev-dependencies]
black = "^22.1.0"