Commit b22791ff authored by Tom Kunze's avatar Tom Kunze
Browse files

server/parse_univis: Output number of found exercises on assertion error.

parent 8114ff0c
......@@ -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))
# Remove old lectures
to_delete_lectures = []
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment