fnp
/
edumed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c13952a
)
check for lessons without section
author
Jan Szejko
<janek37@gmail.com>
Tue, 22 Nov 2016 11:46:10 +0000
(12:46 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 22 Nov 2016 11:46:10 +0000
(12:46 +0100)
curriculum/models.py
patch
|
blob
|
history
diff --git
a/curriculum/models.py
b/curriculum/models.py
index
cfe5ffe
..
1d77d4f
100644
(file)
--- a/
curriculum/models.py
+++ b/
curriculum/models.py
@@
-109,6
+109,7
@@
class Level(models.Model):
prefix = 'Skrocony kurs/%d %s/' % (i, lesson.slug)
lesson.add_to_zip(zipf, student, prefix)
for c, (section, clessons) in enumerate(lessons['course'].items()):
+ assert section, clessons
for i, lesson in enumerate(clessons):
prefix = 'Pelny kurs/%d %s/%d %s/' % (c, section.slug, i, lesson.slug)
lesson.add_to_zip(zipf, student, prefix)