Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
dcf8934b
Commit
dcf8934b
authored
Jun 11, 2018
by
Robin Sonnabend
Browse files
Do not crash on name-less TOPs
/fix
#201
parent
1db55b95
Changes
1
Show whitespace changes
Inline
Side-by-side
server.py
View file @
dcf8934b
...
...
@@ -1824,7 +1824,7 @@ def make_calendar_from_protocols(protocols, summary):
event
[
"dtend"
]
=
to_datetime
(
start
+
timedelta
(
hours
=
3
))
event
[
"summary"
]
=
protocol
.
protocoltype
.
short_name
event
[
"description"
]
=
"
\n
"
.
join
(
top
.
name
for
top
in
protocol
.
get_tops
()
)
top
.
name
for
top
in
protocol
.
get_tops
()
if
top
.
name
is
not
None
calendar
.
add_component
(
event
)
content
=
calendar
.
to_ical
().
decode
(
"utf-8"
)
for
key
in
config
.
CALENDAR_TIMEZONE_MAP
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment