Commit Graph

33 Commits

Author SHA1 Message Date
CasVT
f07dee0400 Refactored MIND.py 2025-08-26 17:07:49 +02:00
CasVT
b18f305cc5 Run timezone check on startup 2025-08-25 21:11:10 +02:00
CasVT
590c0b25ce Refactored tz_shifter.py 2025-08-25 20:56:04 +02:00
CasVT
a369e80ab3 Refactored reminder_handler.py 2025-08-21 17:53:31 +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
344214a605 Refactored signaling of restart type on restart 2025-08-12 17:28:28 +02:00
CasVT
8739e1ab95 Refactored start type handling 2025-08-06 18:46:48 +02:00
CasVT
492674d280 Turned DatabaseBackupHandler methods into classmethods 2025-08-05 12:26:57 +02:00
CasVT
51e2891020 Slightly refactored base code and updated docstrings 2025-08-01 16:58:13 +02:00
CasVT
9a91955ff4 Added timezone change handling (#89) 2025-05-04 16:20:11 +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
0323205934 Enabled closing all DB conns at shutdown 2025-04-22 23:49:03 +02:00
CasVT
0cbb03151f Refactored backend (Fixes #87) 2025-04-22 23:29:35 +02:00
CasVT
3b57d01596 Improved logging setup with debug log files 2024-03-03 23:19:04 +01:00
CasVT
a88cc8a36a Moved logging level setting to admin panel 2024-03-03 16:01:15 +01:00
CasVT
1e6ef57d6a Refactored server code 2024-03-01 12:47:50 +01:00
CasVT
4073f60539 Added hosting settings to admin panel 2024-02-28 22:11:12 +01:00
CasVT
c9a71d8be6 Added database importing (Resolves #2) 2024-02-28 13:48:24 +01:00
CasVT
20efb2eefd Added restart and shutdown buttons 2024-02-23 16:32:22 +01:00
CasVT
2e1dceb934 Fixed 404 page 2024-02-01 14:48:48 +01:00
CasVT
ccdb16eef5 Backend Refactor 2024-02-01 14:42:10 +01:00
Casvt
634759a964 Added admin panel
* Added API and UI base for panel

* Added option to disable registration (Fixes #27)

* Added settings for login duration (Resolves #39)

* Added user management and download database button
2024-01-29 17:30:40 +01:00
CasVT
c9a60f1b48 Added logging 2023-07-04 13:41:35 +02:00
CasVT
8c5e34caee Implemented WAL journal mode for database
Some of the waitress code has been overwritten to make this work (at `backend.db.ThreadedTaskDispatcher`). The `handler_thread` function has been changed so that when the thread shuts down, the database connection for the thread is also closed (this _has_ to happen _in the thread that the connection is for/from_). The `shutdown` function opens and closes a database connection at the end, which triggers the checkpoint of the journal, writing everything to the db file and removing the `-wal` and `-shm` temporary db files.
2023-06-30 22:11:18 +02:00
CasVT
32d4faaa16 Improved API input validation 2023-06-23 00:14:46 +02:00
CasVT
c3ce909554 Improved sending reminders at set time 2023-05-25 21:30:40 +02:00
CasVT
645d4926f8 Frontend refactoring 2023-05-24 13:47:08 +02:00
CasVT
7949910667 Fixes issue #40 2023-03-12 22:53:02 +01:00
CasVT
c5f4f48896 Fixes issue #38 2023-03-12 21:46:12 +01:00
CasVT
8d0387d1d1 Rebranding part 2 2023-02-11 18:11:55 +01:00
CasVT
5acc47946b Rebranding from Noted to MIND 2023-02-11 17:43:35 +01:00