Commit Graph

28 Commits

Author SHA1 Message Date
c9b7a5796e Add tests for createElection handler 2024-12-31 14:35:31 +01:00
57bd72506b Fix validation logic and make code more readable 2024-12-31 00:19:53 +01:00
7beadf1538 Use exec for one-off queries 2024-12-31 00:09:30 +01:00
3c4cfe8e99 Enable foreign keys 2024-12-31 00:06:19 +01:00
e5e85d494e Use prepared statement 2024-12-30 23:47:40 +01:00
4ce099621d Move migration files 2024-12-30 23:40:52 +01:00
3074d0de93 Rename function 2024-12-30 23:15:25 +01:00
e446d4f747 Small refactor 2024-12-30 23:13:39 +01:00
195bc7d85e Generate voter data for known elections and simplify MaxVoters (0 = no maximum) 2024-12-30 23:01:32 +01:00
218f56c060 Implement graceful shutdowns 2024-12-30 22:02:15 +01:00
b5a1bfc247 Small code cleanup 2024-12-30 20:53:53 +01:00
4d73c122e3 Fix bug where maxVoters could be 0 while AreVotersKnown was true 2024-12-30 20:45:04 +01:00
29fb5880e3 Add migrations and continue implementing election insertion 2024-12-30 20:41:28 +01:00
9e96be5ff2 Rename is_anonymous to are_voters_known 2024-12-30 15:37:23 +01:00
c8413eaff8 Rename is_anonymous to are_voters_known 2024-12-30 15:34:29 +01:00
f1a951ce81 Write test skeleton 2024-12-28 17:58:01 +01:00
a22f3e5a71 Write logic for createElection validation 2024-12-28 17:13:22 +01:00
3df4eac964 Add *.sqlite to .gitignore 2024-12-27 18:04:08 +01:00
5c784f491d Add POST /election 2024-12-27 18:03:46 +01:00
80d936af6e Ensure database file is created by pinging 2024-12-27 15:05:37 +01:00
bc2ffce244 Start to code election insert 2024-12-27 14:38:30 +01:00
49bd090df9 Add a few NOT NULL 2024-12-27 12:45:09 +01:00
d2df5adef3 First rough version of openapi.yml 2024-12-27 11:31:05 +01:00
ca5fccb809 Small fixes in init.sql and create drop.sql 2024-12-27 11:10:10 +01:00
1cff219347 Add LICENSE 2024-12-26 17:10:14 +00:00
19a2b5066b Write database schema 2024-12-26 16:51:16 +01:00
c5b236df0f Add *.iml files to .gitignore 2024-12-26 16:48:26 +01:00
465fb18d56 Initial commit 2024-12-26 16:03:14 +01:00