Commit Graph

14 Commits

Author SHA1 Message Date
CasVT
6496220b54 Fixed docstrings in Server class 2025-08-26 17:26:19 +02:00
CasVT
5bfe6e207d Supply URL prefix when starting server
Before it would be set via a method, but it's more logical for it to just be supplied when starting to run the server, alongside the host and port.
2025-08-18 15:22:29 +02:00
CasVT
c9719ec221 Create Flask app on init of Server class 2025-08-17 16:34:49 +02:00
CasVT
a8ad6712b2 Removed unnecessary call to close DB connection 2025-08-17 16:08:42 +02:00
CasVT
b427c2c1d4 Refactored Flask error handling setup 2025-08-15 16:42:25 +02:00
CasVT
3847e2fa07 Fixed JSON formatting of API responses 2025-08-12 17:56:52 +02:00
CasVT
344214a605 Refactored signaling of restart type on restart 2025-08-12 17:28:28 +02:00
CasVT
b5387a0635 Moved API prefixes from Server to Constants 2025-08-12 16:57:13 +02:00
CasVT
8739e1ab95 Refactored start type handling 2025-08-06 18:46:48 +02:00
CasVT
75823c0899 Put closing threads DB connection into own method 2025-08-05 12:18:56 +02:00
CasVT
8fced3c978 Fixed 404 handling 2025-05-17 20:17:08 +02:00
CasVT
59ac864c16 Added DB backup system 2025-04-30 13:52:31 +02:00
CasVT
89ff90a9a4 Fixed closing DB conns in time on shutdown
We needed the close_all_db function to close any remaining database connections on shutdown. But why were there any unclosed db connections anyway? The connections were closed after the thread was already marked as shut down so when exiting the thread wasn't done with closing the database yet and thus sometimes you had an improper shutdown. Now the threads are only marked as stopped when the database connection is also closed so we have guaranteed that they'll be closed when the server returns. So no more need to explicitly close any remaining afterwards.
2025-04-23 23:10:01 +02:00
CasVT
0cbb03151f Refactored backend (Fixes #87) 2025-04-22 23:29:35 +02:00