Adjust default event duration to be 30 minutes
This commit is contained in:
parent
826eafbc86
commit
cff981eb8b
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue