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
b22791ff
Commit
b22791ff
authored
Sep 27, 2020
by
Tom Kunze
Browse files
server/parse_univis: Output number of found exercises on assertion error.
parent
8114ff0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
django/server/management/commands/parse_univis.py
View file @
b22791ff
...
...
@@ -299,7 +299,9 @@ def parse_Univis_for_Lectures():
# Round them to full 2-hour-slot!
all_exercises
=
_set_default_displaytime
(
all_exercises
)
assert
len
(
all_exercises
)
>
100
,
"DAFUQ UNIVIS GAVE US ONLY {} EXERCISES"
.
format
(
len
(
all_exercises
))
new_exercise
=
list
(
map
(
lambda
x
:
{
k
:
x
[
k
]
for
k
in
(
"name"
,
"start"
,
"end"
,
"weekday"
,
"room"
)},
all_exercises
))
#print(all_exercises)
# Remove old lectures
to_delete_lectures
=
[]
...
...
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