Pushing dept/school data to DB#289
Merged
RafaelCenzano merged 12 commits intoLabConnect-RCOS:mainfrom Apr 13, 2025
Merged
Conversation
… valid. Ran ruff format.
|
Here's the code health analysis summary for commits Analysis Summary
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description & Fixes # (issue)
Pushing department data to DB:
In db_init.py, added an argument for addDept to add schools/dept from json endpoint to database. Updated functions and addDept code. Follow same coding style as used in addCourses.
Department/school data can now be pushed to the Database. Dept data is only added to the DB, if not found in the DB.
How Has This Been Tested?
In powershell:
For testing addDept:
python db_init.py addDept https://raw.githubusercontent.com/quacs/quacs-data/master/semester_data/202409/schools.json
For testing addCourses:
python db_init.py addCourses https://raw.githubusercontent.com/quacs/quacs-data/master/semester_data/202409/catalog.json
Checklist: