Commit Graph

18 Commits

Author SHA1 Message Date
de36c6844c doorcontrol: Convert HIDEvent.raw_card_number to TextField
Turns out that those are not just representing a uint, and can be much
longer. Also Text fields in Postgres doesn't have any performance
penalty.
2024-09-03 11:05:32 -04:00
ee61451759 Convert from MariaDB to PostgreSQL
MariaDB has become far too annoying/buggy, and there are some neat
features only available in PostgreSQL
2024-08-29 21:45:56 -04:00
cbe684d918 doorcontrol: Move HID card number decoding out of database query
Not really needed, and hard to make portable
2024-08-29 21:45:56 -04:00
ab25da0aa1 Apply Ruff's flake8-builtins (A) rules 2024-08-09 01:47:32 -04:00
d8e6a69719 Apply ruff lint rule DJ012 for model internals ordering 2024-06-07 09:36:49 -04:00
4404223350 doorcontrol: Add "granted access" count to "detail by day" report
All checks were successful
Ruff / ruff (push) Successful in 29s
Test / test (push) Successful in 4m25s
2024-05-13 00:38:01 -04:00
0944dd7992 Fix various type issues 2024-05-04 18:03:22 -04:00
5aadcccb2c doorcontrol: Fix typo in Door.card_formats
All checks were successful
Ruff / ruff (push) Successful in 1m25s
Test / test (push) Successful in 6m53s
2024-03-07 10:49:28 -05:00
b6280d701f doorcontrol: Migrate door updater over from memberPlumbing
All checks were successful
Ruff / ruff (push) Successful in 2m1s
Test / test (push) Successful in 7m20s
2024-02-23 18:39:41 -05:00
66b41e1448 doorcontrol: Store cardholder_id->member per door for correct stats 2024-02-09 12:23:55 -05:00
cacde865c0 doorcontrol: Convert HIDEvent.is_red to newly added GeneratedField
model.GeneratedField is new in Django 5.0
2023-12-04 12:05:37 -05:00
300397b021 doorcontrol: Add property on Door model to get associated DoorController 2023-11-14 12:53:15 -05:00
96bcc80516 doorcontrol: Add task to periodically pull events from doors 2023-11-08 12:34:11 -05:00
ee001b0256 doorcontrol: Move Door names from HIDEvents into new table 2023-09-26 23:27:31 -04:00
cb8bf3da4f doorcontrol: Use enum members instead of raw ids for "red" event types 2023-09-26 23:27:31 -04:00
906f662419 doorcontrol: Add annotations that decode the hex card number 2023-04-03 23:15:12 -04:00
58d3787f9d doorcontrol: Reimplement HIDEvent.is_red as database function, add filter in admin 2023-04-03 17:19:46 -04:00
a6c531c22f Add doorcontrol app for managing HID door controllers
Just read-only access to the event log dump for now
2023-04-03 16:15:20 -04:00