GithubHelp home page GithubHelp logo

Comments (7)

rianadon avatar rianadon commented on July 28, 2024

Thank you for reporting this, but I'm not able to reproduce this myself, so I'm not sure what could be going wrong.

Therefore, when you have the time, please try the following:

  1. Open the developer console, and execute console.table(athenaData). You should see a table of courses names, links, and periods.

    • Do the periods and class names match up?
    • Try visiting the links. Do they match up with the classes?
  2. Execute the following:

    console.table(JSON.parse(localStorage.athenaDataRaw).body.courses.sections, ["section_title", "link"])
    • This should output a table of period numbers and links. Do the links match up with the period numbers?

from checkpcr.

jerrychen109 avatar jerrychen109 commented on July 28, 2024

Nope, the periods and class names don't match up, but the links match with the periods. I'm guessing it's probably a relatively unique issue caused by A. that I have a couple courses stuck from last year because one of the teachers left and the other is teaching something else now and B. that all juniors have an extra advisory course made to share stuff to the entire Class of 2018. I'll check with a couple other juniors to see if they have similar issues.

from checkpcr.

rianadon avatar rianadon commented on July 28, 2024

Hmm I also have a few courses from last year and an extra advisory course, but nevertheless that still could be related.

Try running the following:

c=JSON.parse(localStorage.athenaDataRaw).body.courses;console.table(c.courses,["course_title","nid"]);console.table(c.sections,["course_nid","link"])

This should print out two tables, one of class names and nids, and another of links and course_nids.

Basically, the data retrieved from pasting in that large chunk of data into the settings page is divided into two parts: courses (which include the course name) and sections (which contain the link), and the links of courses are found by stitching the courses and sections together via these ids that should match each other.

Once you get the output, try visiting the outputted links and see if their course_nids match the nids for the corresponding classes. If they don't, is their any kind of pattern to their discrepancy?

Thanks for helping debug this!

from checkpcr.

rianadon avatar rianadon commented on July 28, 2024

Before you go to the effort of following the instructions above if you haven't already, did you paste the data from Athena into the welcome page or into the settings page?

A while ago I think the same thing was happening and I updated the algorithm in the code run by the settings page, but not the code run by the welcome page, which maintained its own copy of the same algorithm.

from checkpcr.

jerrychen109 avatar jerrychen109 commented on July 28, 2024

from checkpcr.

jerrychen109 avatar jerrychen109 commented on July 28, 2024

from checkpcr.

rianadon avatar rianadon commented on July 28, 2024

Okay cool! Thank you for all of your help.

I'll fix the error on the welcome page as soon as I can get around to it.

from checkpcr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.