Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-10-24 | Separate admin routes to a blueprint | Frederick Yin | |
Because modularity | |||
2021-10-24 | CSS fix for input fields | Frederick Yin | |
2021-10-24 | Admin can now modify database from web console | Frederick Yin | |
2021-10-24 | Routine: strip away tzinfo from datetime | Frederick Yin | |
2021-10-24 | One major, multiple minor changes to Database | Frederick Yin | |
Major: - New update(umb) method as an interface to _update(umb), with convenience and safeguards. Minor: - New exception: UmbrellaValueError - All datetime objects are cast naive - Database._write(umbrellas) raises exception after performing recovery - human_datetime includes seconds in output | |||
2021-10-24 | Database.group_by_status lists all statuses | Frederick Yin | |
If there are no umbrellas that are overdue in the database, the behavior was to omit them from the returned dict. Now their values are []. Also, small comment fix. | |||
2021-10-24 | Implement basic I/O of AdminLog | Frederick Yin | |
2021-10-23 | Routine logging and test thereof | Frederick Yin | |
2021-10-23 | Database high-level operations no longer require date | Frederick Yin | |
2021-10-22 | Reformat utils.py | Frederick Yin | |
2021-10-22 | Test process_overdue | Frederick Yin | |
2021-10-22 | Mark overdue umbrellas in Database | Frederick Yin | |
2021-10-22 | UTC+8 timezone object | Frederick Yin | |
2021-10-22 | Tests: jForm mock data generator and routine tests | Frederick Yin | |
2021-10-22 | Routines, to be run at an interval | Frederick Yin | |
2021-10-22 | JForm: fixes, comments, datatype, return value | Frederick Yin | |
2021-10-22 | Reformat exceptions.py with black | Frederick Yin | |
2021-10-22 | Exposed database operations take argument "date" | Frederick Yin | |
Namely, Database.take_away and Database.give_back "date" is an instance of datetime.datatime | |||
2021-10-22 | Define application-specific exceptions | Frederick Yin | |
2021-10-22 | Terminology: rename "checkpoint" to "bookmark" | Frederick Yin | |
2021-10-22 | Mobile view for overdue table | Frederick Yin | |
This prevents banner and tile containers from overflowing to the left. | |||
2021-10-21 | Basic interfacing with jForm API | Frederick Yin | |
Retrieve unread answer sheets from jForm. | |||
2021-10-21 | Include licenses of dependencies | Frederick Yin | |
3-BSD for Flask MIT for user-agents | |||
2021-10-21 | Mobile view for /admin/umbrellas | Frederick Yin | |
2021-10-21 | Fix bug within human_timedelta | Frederick Yin | |
2021-10-20 | Frontend updates | Frederick Yin | |
I forgot what I exactly did | |||
2021-10-20 | Separate "overdue" from "lent" as a distinct status | Frederick Yin | |
2021-10-20 | Add page /admin/umbrellas | Frederick Yin | |
Lists all umbrellas in a table. | |||
2021-10-20 | Update frontend, is more informational and pretty | Frederick Yin | |
2021-10-20 | Adjust Flask server to new database methods | Frederick Yin | |
2021-10-20 | Move database utilities to database.py | Frederick Yin | |
It may not be a good idea to scatter database utilities around utils.py. With this in mind, I moved them to database.py as static methods under the class Database. | |||
2021-10-20 | Move container style to top in css | Frederick Yin | |
2021-10-20 | More work on web console | Frederick Yin | |
2021-10-19 | Add README and LICENSE | Frederick Yin | |
2021-10-19 | echo "*.lock" >> .gitignore | Frederick Yin | |
2021-10-19 | Include sample DB file | Frederick Yin | |
2021-10-19 | Flask web server prototype | Frederick Yin | |
2021-10-19 | Database lock | Frederick Yin | |
Is a lockfile named "$DATABASE_NAME.lock". `Database._write()` prevents race conditions by enforcing the lock, and waiting until a previous lock is released. | |||
2021-10-19 | No more __main__ until further notice | Frederick Yin | |
2021-10-19 | Add .gitignore | Frederick Yin | |
2021-10-19 | Basic database operations | Frederick Yin | |
Define database format. Implement basic I/O operations and take_away / give_back methods. |