Skip to content

Commit

Permalink
make course plots and instructor reviews use primary listing
Browse files Browse the repository at this point in the history
  • Loading branch information
AaDalal committed Nov 10, 2023
1 parent 57eb700 commit 9a3c005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/review/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def course_plots(request, course_code):
except Course.DoesNotExist:
raise Http404()

course = course.topic.most_recent
course = course.primary_listing.topic.most_recent

current_semester = get_current_semester()

Expand Down Expand Up @@ -582,8 +582,8 @@ def instructor_for_course_reviews(request, course_code, instructor_id):
check_instructor_id(instructor_id)
instructor = get_object_or_404(Instructor, id=instructor_id)

topic = course.topic
course = course.topic.most_recent
topic = course.primary_listing.topic
course = topic.most_recent

reviews = review_averages(
Review.objects.filter(
Expand Down

0 comments on commit 9a3c005

Please sign in to comment.