Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
advisor
Commits
8031bd84
Commit
8031bd84
authored
Mar 02, 2014
by
Chris Reffett
Browse files
fix adding all the science bug
parent
4f7c09a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
advisor/mainapp/utils.py
View file @
8031bd84
...
@@ -20,8 +20,11 @@ def programCourses(program):
...
@@ -20,8 +20,11 @@ def programCourses(program):
coursegroup
=
CourseGroup
.
objects
.
get
(
title
=
course
.
title
)
coursegroup
=
CourseGroup
.
objects
.
get
(
title
=
course
.
title
)
repeat
=
True
repeat
=
True
courses
.
remove
(
course
)
courses
.
remove
(
course
)
numadded
=
0
for
newcourse
in
coursegroup
.
courses
.
all
():
for
newcourse
in
coursegroup
.
courses
.
all
():
if
numadded
<
coursegroup
.
numneeded
courses
.
append
(
newcourse
)
courses
.
append
(
newcourse
)
numadded
++
return
courses
return
courses
...
...
Write
Preview
Markdown
is supported
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