Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hgruniaux/td10
https://github.com/hgruniaux/td10
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hgruniaux/td10
- Owner: hgruniaux
- Created: 2024-05-15T08:38:21.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-09T13:50:44.000Z (5 months ago)
- Last Synced: 2024-06-09T14:57:13.803Z (5 months ago)
- Language: Python
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TD10 - Student Grade Application Project
## The TEAM:
- Pierre-Gabriel Berlureau
- Hubert Gruniaux
- Vincent Jules## To execute:
First run `pip install -r requirements.txt`.
Then, you should create a `.env` file in the working directory with the following content:
```ini
DB_NAME=/* your database name */
DB_USER=/* your user name for the database */
DB_PASSWD=/* you password for the database */
```
Database `DB_NAME` must either already exist or be created manually with `psql`.Finally, you can execute `python3 run.py`. It will correctly initialize the database by executing the code in `init.sql` at startup.
## Notes
- All grades returned by the database are rounded. The number of decimals keep is the constant `GRADES_DECIMAL_ROUNDING` defined in [model.py](model.py).
- When no validations exist, the average grade in a curriculum or course is defined to be None. When there is a validation, but no grade registered for a student, then the grade is defined to be 0.