Skip to content

Commit 768a30f

Browse files
committed
Fix: base course mismatch for studyclues
1 parent eb8fb7d commit 768a30f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

bases/rsptx/assignment_server_api/routers/student.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,11 @@ def get_studyclues_book_id(course: CoursesValidator) -> str:
191191
# For example, you might have a mapping of course names to book IDs.
192192
course_to_book_id = {
193193
"csawesome2": 28,
194-
"thinkcspy": 29,
194+
"httlacs": 29,
195195
"py4e-int": 30,
196196
"PTXSB": 28,
197197
"cppds2": 35,
198+
"thinkcspy": 36,
198199
# Add more mappings as needed
199200
}
200201
return course_to_book_id.get(course.base_course, 28)

bases/rsptx/interactives/runestone/common/js/bookfuncs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,8 @@ function shouldShowStudyCluesWidget() {
820820
return false;
821821
}
822822

823-
const enabledBasecourses = ["csawesome2", "py4e-int", "thinkcspy", "PTXSB", "cppds2"];
824-
const enabledCourses = ["SI201-W26-MW", "SI201-W26-TTh", "DukeCS101SP26", "mcd-csa-schoology", "mcd-csa-canvas", "csawesome2-MOOC", "test_py4e-int_api", "bc_cppds_s26"];
823+
const enabledBasecourses = ["csawesome2", "py4e-int", "thinkcspy", "httlacs", "PTXSB", "cppds2"];
824+
const enabledCourses = ["SI201-W26-MW", "SI201-W26-TTh", "DukeCS101SP26", "mcd-csa-schoology", "mcd-csa-canvas", "csawesome2-MOOC", "test_py4e-int_api", "bc_cppds_s26", "test-py4e-int"];
825825
const host = window.location.hostname;
826826

827827
if (host === "localhost") {

0 commit comments

Comments
 (0)