Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix interested student count

Use only # of student who can be reached.
  • Loading branch information...
commit 37d7c1902466941942ec51025875b8e3df7642cb 1 parent 345a592
@NathanNeff authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 grails-app/services/org/bworks/bworksdb/CourseService.groovy
View
13 grails-app/services/org/bworks/bworksdb/CourseService.groovy
@@ -88,7 +88,18 @@ class CourseService {
}
def activeInterests(Course p) {
- return Interest.findAllByCourseAndActive(p, true)
+ // return Interest.findAllByCourseAndActive(p, true)
+
+ def c = Interest.createCriteria()
+ return c.list {
+ eq('active', true)
+ eq('course', p)
+ student {
+ contact {
+ eq('cannotReach', false)
+ }
+ }
+ }
}
// Utility method to make sure we have lesson sequences
Please sign in to comment.
Something went wrong with that request. Please try again.