hey2022 / tls-xb Goto Github PK
View Code? Open in Web Editor NEWtls-xb is a cli tool that fetches scores and GPA from https://tsinglanstudent.schoolis.cn
Home Page: https://crates.io/crates/tls-xb
License: GNU General Public License v3.0
tls-xb is a cli tool that fetches scores and GPA from https://tsinglanstudent.schoolis.cn
Home Page: https://crates.io/crates/tls-xb
License: GNU General Public License v3.0
config.toml is read from the current directory for now.
However, it should be read from a fixed config directory for each operating system.
Sometimes there is a captcha that will make the program fail to login. There should be a way for the user to get the captcha image and type in the captcha to login.
Make it so that when the GPA is hidden, manually calculate the GPA using the subject scores instead of returning NaN.
Sometimes when getting the subjects for a semester, there will be multiple subjects with the same id but a different subject code for some reason, maybe because of a class change. This will lead to the program outputting duplicate information for a subject.
Response for https://tsinglanstudent.schoolis.cn/api/LearningTask/GetStuSubjectListForSelect containing duplicated subjects:
{
"data": [
{
"subjectCode": "CS401",
"id": 65943,
"name": "AP Computer Science Principles",
"eName": "AP Computer Science Principles"
},
{
"subjectCode": "EN203",
"id": 129809,
"name": "IGCSE English Literature",
"eName": "IGCSE English Literature"
},
{
"subjectCode": "EN205",
"id": 129809,
"name": "IGCSE English Literature",
"eName": "IGCSE English Literature"
},
{
"subjectCode": "MA405",
"id": 84014,
"name": "AP Calculus BC",
"eName": "AP Calculus BC"
},
{
"subjectCode": "ML 200",
"id": 130550,
"name": "Chinese as a Second Language II",
"eName": "Chinese as a Second Language II"
},
{
"subjectCode": "ML110",
"id": 41066,
"name": "Spanish I",
"eName": "Spanish I"
},
{
"subjectCode": "PE US",
"id": 34037,
"name": "Physical Education",
"eName": "Physical Education"
},
{
"subjectCode": "SC303",
"id": 65942,
"name": "AP Physics 1",
"eName": "AP Physics 1"
},
{
"subjectCode": "SO211",
"id": 129808,
"name": "IGCSE Economics",
"eName": "IGCSE Economics"
}
],
"msgCN": null,
"msgEN": null,
"state": 0,
"msg": null
}
If the score for an evaluation project is none, that evaluation project won't be weighted. Which means that the other evaluation projects need to adjust their weights, so it adds to 100%.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.