Add the end date
This commit is contained in:
parent
9acde4bd9d
commit
d7510dd9cb
2
main.py
2
main.py
|
@ -42,12 +42,12 @@ def process() -> Response:
|
||||||
entry = Event()
|
entry = Event()
|
||||||
entry.add('description', component['description'])
|
entry.add('description', component['description'])
|
||||||
entry.add('dtstamp', component['dtstamp'])
|
entry.add('dtstamp', component['dtstamp'])
|
||||||
# entry.add('dtstart', component['dtstart'])
|
|
||||||
entry.add(
|
entry.add(
|
||||||
'dtstart',
|
'dtstart',
|
||||||
datetime.combine(component.decoded('dtstart'), time(0))
|
datetime.combine(component.decoded('dtstart'), time(0))
|
||||||
+ timedelta(days=int(days), hours=int(hours), minutes=int(mins)),
|
+ timedelta(days=int(days), hours=int(hours), minutes=int(mins)),
|
||||||
)
|
)
|
||||||
|
entry.add('dtend', component['dtend'])
|
||||||
entry.add('summary', component['summary'])
|
entry.add('summary', component['summary'])
|
||||||
entry.add('uid', component['uid'])
|
entry.add('uid', component['uid'])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue