projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
946e87d
)
remove duplicate courses to scoreboard counts
author
Bryan
<btbonval@gmail.com>
Mon, 30 Mar 2015 17:54:04 +0000
(13:54 -0400)
committer
Bryan
<btbonval@gmail.com>
Mon, 30 Mar 2015 17:54:04 +0000
(13:54 -0400)
closes #421
karmaworld/apps/courses/models.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/courses/models.py
b/karmaworld/apps/courses/models.py
index 13b39d7241be6f25c457473cdcc20cead9add9c6..0746f644289dfe95902e80b8bc60825981557043 100644
(file)
--- a/
karmaworld/apps/courses/models.py
+++ b/
karmaworld/apps/courses/models.py
@@
-93,11
+93,11
@@
class School(models.Model):
contained course.file_count
"""
# find all courses without a department
- course_list =
lis
t(self.course_set.all())
+ course_list =
se
t(self.course_set.all())
# find all courses with a department
for department in self.department_set.all():
for course in department.course_set.all():
- course_list.a
ppen
d(course)
+ course_list.a
d
d(course)
self.file_count = sum([course.file_count for course in course_list])
self.save()