Commit graph

44 commits

Author SHA1 Message Date
bronsen
c3b749ec37 codestyle: ty needs less help here too 2026-02-19 20:44:56 +01:00
bronsen
9b04902825 models: it's not an error if we can continue operating 2026-02-19 20:44:18 +01:00
bronsen
49a21ca9cf models: be even more defensive when parsing input
also we finally read the documentation for str.find()
https://docs.python.org/3/library/stdtypes.html#str.find
2026-02-19 20:42:50 +01:00
bronsen
b0e7089389 codestyle: ty needs less hinting 2026-02-18 20:40:58 +01:00
bronsen
eb51024ca0 database: inhibit echoing to console
This interferes very much with the app.
2026-02-18 20:40:17 +01:00
bronsen
c3d5983d23 codestyle: remove assignment to _: we no longer need to quieten the LSP 2026-02-18 18:23:38 +01:00
bronsen
9260c225e4 codestyle: remove unneeded hint for ty
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
2026-02-16 21:12:15 +01:00
bronsen
a5ef6f2017 config: retrieve DATABASE_URL from environment vars 2026-02-16 21:11:08 +01:00
bronsen
d6bcb90431 main: don't add fake data during start up 2026-02-14 18:51:37 +01:00
bronsen
b068bd1e2a models: add docstring to constructor function 2026-02-14 18:49:24 +01:00
bronsen
814d5eade7 models: more logging 2026-02-14 18:49:05 +01:00
bronsen
0d80c686c7 models: load initial data from database 2026-02-14 18:48:46 +01:00
bronsen
61f259ecfc database: use a file-based DB again, so we can manipulate it from outside the program 2026-02-14 18:47:39 +01:00
bronsen
a34135ef6f syntax: when you await it must be async 2026-02-14 16:36:46 +01:00
bronsen
17a9593b32 datatable: colums should be a list of strings 2026-02-14 16:36:07 +01:00
bronsen
a45576406e [codestyle] clean up imports 2026-02-07 02:52:31 +01:00
bronsen
6a4334263a [models] move data loader to models module 2026-02-07 02:52:13 +01:00
bronsen
d2b6e11fe4 [typing] remove various decorators that we only used to hep basedpyright
ty solves this so much better
2026-02-07 02:51:02 +01:00
bronsen
312e60fa1f [models] move typedefs into models module 2026-02-07 02:49:38 +01:00
bronsen
a7d0bee0e7 add hints for ty, remove hints for basedpyright 2026-02-07 02:48:27 +01:00
bronsen
6155b54083 [models] make helper function async 2026-02-07 02:47:36 +01:00
bronsen
f4caba78e8 [models] don't warn on empty description 2026-02-07 02:46:44 +01:00
bronsen
50db5b9192 move special imports into helper function 2026-02-07 02:46:01 +01:00
bronsen
e438015ba8 [codestyle] move class definition closer to usage 2026-02-07 02:44:59 +01:00
bronsen
8c0eff5693 [tooling] shut up basedpyright in this one case 2026-01-08 12:07:51 +01:00
bronsen
3e1bae138a [logging] End sentence of error message with a period "." 2026-01-08 12:07:31 +01:00
bronsen
a49cfd0dc1 [codestyle] add TODO item 2026-01-08 12:06:32 +01:00
bronsen
f622a58214 [models] simplify model hierarchy by removing one intermediate layer 2026-01-08 12:06:12 +01:00
bronsen
13121637cf [codestyle] remove commented-out line of code 2026-01-08 12:04:36 +01:00
bronsen
444839b8e6 have Textual handle log messages
Some checks failed
ci/woodpecker/push/workflow Pipeline failed
2025-12-28 21:56:57 +01:00
bronsen
dbd622ed9d make it so that Textual can start the app 2025-12-28 21:56:21 +01:00
bronsen
173d23addf [project] extract tui code into own module, also extraxt (db) models into their own module
Some checks failed
ci/woodpecker/push/workflow Pipeline failed
2025-12-26 18:53:14 +01:00
bronsen
d58ae7aad1 [project] extract low-level database functions into own module 2025-12-26 18:51:07 +01:00
bronsen
de9a8497d8 [deps] drop tortoise in favour of sqlmodel 2025-12-20 04:31:21 +01:00
bronsen
5a190fe590 avoid circular imports 2025-12-10 02:18:33 +01:00
bronsen
6c6ca0e997 create settings module in preparation of aerich
currently, it's only used for tortoise_orm
2025-12-09 21:35:48 +01:00
bronsen
be0d7acf3b [models] add constraints 2025-12-09 21:35:48 +01:00
bronsen
59e68f47bd [models] extract common fields into mixin 2025-12-09 00:53:17 +01:00
bronsen
59d668ba9c [models] move Models into their own module 2025-12-08 17:38:54 +01:00
bronsen
221062ead5 [models] make it so tortoise runs inside textual's async loop thing 2025-12-08 17:38:54 +01:00
bronsen
599d4f579d sprinkle some async over the code 2025-12-04 23:11:41 +01:00
bronsen
8999f5a52f feat(ui): Layout our search results more correctly 2025-12-04 19:28:14 +01:00
bronsen
4fbee9dfee feat(ui): Add Datatable layout 2025-12-04 19:25:18 +01:00
bronsen
65ee1e37c6 feat(ui): Display header, footer, and searchbar 2025-12-04 13:21:49 +01:00