-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Study Room Functions to to Library Module (#177)
* Added a couple Hillman library features Tells the user how many reservations are in the Hillman library, and also tells the user what rooms and times are reserved in the Hillman library. * fixed a bug with reservations pulling; moved reservations functions to library module * revert lab back * revert lab * Update lab.py * revert lab again * Ran black to format correctly * Update pittapi/course.py Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> * Delete black * Update course_test.py * Update dining_test.py * Update library_test.py * Update course_mocks.py * Update people_test.py * Update sports_test.py * Update status_test.py * Update textbook_test.py * Update textbook_test.py * Update course_mocks.py * Update dining_test.py * Update course_test.py * Update textbook_test.py * Update course_mocks.py * Fix black errors * Update library.py Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> * Added type hints for new functions * Polished up formatting in library file - Added space at end of file - Enforced 2 spaces between functions * Added unit tests for library module update I added unit tests for both of the new functions and updated the sample path variable. For some reason I was having issues with the original sample path, so I updated it so the testing works good for all functions in the library_test file now. * changed spacing for a line * Update tests/library_test.py Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> * Update tests/library_test.py Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> * Update tests/library_test.py Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> * Update type hints --------- Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
- Loading branch information
1 parent
f991030
commit 5f7ad48
Showing
12 changed files
with
289 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"from": "2024-06-12 17:30:00", | ||
"to": "2024-06-12 20:30:00", | ||
"nickname": "H2P CLUB", | ||
"itemId": 31053, | ||
"itemName": "408 HL (Max. 5 persons) (Enclosed Room)", | ||
"itemHasMoreInfo": true, | ||
"categoryName": "Group Study Spaces", | ||
"categoryUrl": "/spaces?lid=917&gid=1558", | ||
"locationName": "Hillman Library", | ||
"seatName": "" | ||
}, | ||
{ | ||
"from": "2024-06-12 18:00:00", | ||
"to": "2024-06-12 21:00:00", | ||
"nickname": "ria", | ||
"itemId": 31055, | ||
"itemName": "409 HL (Max. 5 persons) (Enclosed Room)", | ||
"itemHasMoreInfo": true, | ||
"categoryName": "Group Study Spaces", | ||
"categoryUrl": "/spaces?lid=917&gid=1558", | ||
"locationName": "Hillman Library", | ||
"seatName": "" | ||
}, | ||
{ | ||
"from": "2024-06-12 18:30:00", | ||
"to": "2024-06-12 21:30:00", | ||
"nickname": "Leyla", | ||
"itemId": 60964, | ||
"itemName": "303 HL (Max. 5 persons) (Enclosed Room)", | ||
"itemHasMoreInfo": true, | ||
"categoryName": "Group Study Spaces", | ||
"categoryUrl": "/spaces?lid=917&gid=1558", | ||
"locationName": "Hillman Library", | ||
"seatName": "" | ||
}, | ||
{ | ||
"from": "2024-06-12 19:00:00", | ||
"to": "2024-06-12 22:30:00", | ||
"nickname": "John 117", | ||
"itemId": 146782, | ||
"itemName": "217 HL (Max. 10 persons) (Enclosed Room)", | ||
"itemHasMoreInfo": true, | ||
"categoryName": "Group Study Spaces", | ||
"categoryUrl": "/spaces?lid=917&gid=1558", | ||
"locationName": "Hillman Library", | ||
"seatName": "" | ||
} | ||
], | ||
"draw": 1, | ||
"recordsTotal": 4, | ||
"recordsFiltered": 4 | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.