Skip to content

Commit

Permalink
Merge pull request #150 from AccelerationConsortium/sgbaird-patch-5
Browse files Browse the repository at this point in the history
Update fetch_student_count.js with robotics and software dev
  • Loading branch information
sgbaird authored Feb 28, 2025
2 parents 7a648c7 + b77d1f9 commit d617e18
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/_static/fetch_student_count.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ document.addEventListener("DOMContentLoaded", function() {
// Update the student count and remove the loading message/spinner
document.getElementById('helloWorldStudentCount').innerText = data.hello_world_student_count || 'N/A';
document.getElementById('helloWorldCompletionCount').innerText = data.hello_world_completion_count || 'N/A';
document.getElementById('dataScienceStudentCount').innerText = data.data_science_student_count;
document.getElementById('dataScienceCompletionCount').innerText = data.data_science_completion_count;
document.getElementById('dataScienceStudentCount').innerText = data.data_science_student_count || 'N/A';
document.getElementById('dataScienceCompletionCount').innerText = data.data_science_completion_count || 'N/A';
document.getElementById('roboticsStudentCount').innerText = data.robotics_student_count || 'N/A';
document.getElementById('roboticsCompletionCount').innerText = data.robotics_completion_count || 'N/A';
document.getElementById('softwareDevStudentCount').innerText = data.software_dev_student_count || 'N/A';
document.getElementById('softwareDevCompletionCount').innerText = data.software_dev_completion_count || 'N/A';
// Repeat for other courses, matching their respective IDs
} catch (error) {
console.error('Failed to fetch student counts:', error);
Expand Down

0 comments on commit d617e18

Please sign in to comment.