Adjust default event duration to be 30 minutes

This commit is contained in:
Edward Betts 2024-03-27 16:35:13 +00:00
parent 826eafbc86
commit cff981eb8b

View file

@ -61,7 +61,7 @@ def build_events(events: list[Event]) -> list[dict[str, typing.Any]]:
continue continue
if e.has_time: if e.has_time:
end = e.end_date or e.date + timedelta(hours=1) end = e.end_date or e.date + timedelta(minutes=30)
else: else:
end = (e.end_as_date if e.end_date else e.as_date) + one_day end = (e.end_as_date if e.end_date else e.as_date) + one_day
item = { item = {