Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List advisory Location #630

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

List advisory Location #630

wants to merge 3 commits into from

Conversation

thesuperRL
Copy link
Collaborator

fixes #629

@thesuperRL thesuperRL enabled auto-merge (squash) September 28, 2023 19:38
PyGithub
six # for some reason google cloud needs this
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't need this when using python3? Can you post the error you are seeing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runs fine on my own local server, but errors for some reason in the test system on Github

@@ -460,13 +460,17 @@ function renderStudent(studentObj) {
var advisoryTag = '<p><iron-icon icon="icons:perm-identity"></iron-icon>' +
"Advisor: " + studentObj.advisor.charAt(1).toUpperCase() +
studentObj.advisor.slice(2) + "</p>";
var advisoryLocationTag = '<p><iron-icon icon="icons:room"></iron-icon>' +
"Advisory Room: " + studentObj.classes[0][8].room + "</p>";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a bit fragile, and might not work well if the student has an unusual course load. Maybe add a function to get a class by name, and we can search for "Advisory"?

@thesuperRL thesuperRL requested a review from juberti October 6, 2023 16:22
@@ -26,6 +26,14 @@ function renderGitHubCommits() {
});
document.getElementById("GHUpdateText").innerHTML = updated;
}
function getCourseByName(studentClasses, name) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name parameter isn't being used here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display Advisory Locations
2 participants