Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CipMap
CipMap
Commits
580592e6
Commit
580592e6
authored
Apr 06, 2019
by
Tom Kunze
Browse files
server/parse_univis: Fix wrong weekday for single events
parent
71761f4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
django/server/management/commands/parse_univis.py
View file @
580592e6
...
...
@@ -144,7 +144,7 @@ def _get_all_events_in_rooms(roomnumbers):
if
not
event
.
startdate
.
text
==
event
.
enddate
.
text
:
print
(
'Event without repeat over multiple days found: {}'
.
format
(
event
.
title
.
text
),
file
=
sys
.
stderr
)
continue
weekdays
=
str
(
dateutil
.
parser
.
parse
(
event
.
startdate
.
text
).
weekday
())
weekdays
=
str
(
dateutil
.
parser
.
parse
(
event
.
startdate
.
text
).
weekday
()
+
1
)
elif
event
.
repeat
.
text
[
0
:
2
]
==
"d1"
or
event
.
repeat
.
text
[
0
:
2
]
==
"bd"
:
weekdays
=
"1,2,3,4,5,6,0"
elif
event
.
repeat
.
text
[
0
:
2
]
==
"w1"
:
...
...
Write
Preview
Supports
Markdown
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