Skip to content

Commit

Permalink
adds the forgoten where to the query
Browse files Browse the repository at this point in the history
  • Loading branch information
ghatighorias committed Oct 4, 2017
1 parent c73311a commit 5af6529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/course_planner/terms/terms.ex
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ defmodule CoursePlanner.Terms do
join: c in assoc(oc, :classes),
join: a in assoc(c, :attendances),
preload: [offered_courses: {oc, course: co, classes: {c, attendances: a}, students: s}],
where: s.id == ^student_id,
order_by: [asc: t.start_date, asc: t.end_date, asc: co.name, asc: c.date, asc: c.starting_at])
end
end

0 comments on commit 5af6529

Please sign in to comment.