Commit Graph

266 Commits

Author SHA1 Message Date
oysteikt de0eacc901 Add subcommand for displaying the transaction log 2026-05-31 23:02:36 +09:00
oysteikt e047a4d88c seed_test_data: use new queries 2026-05-31 23:02:36 +09:00
oysteikt 78fe1ff3a3 README: add overview of project structure 2026-05-31 23:02:36 +09:00
oysteikt d397d0a727 Write a set of queries to go along with the event sourcing model 2026-05-31 23:02:36 +09:00
oysteikt f6cf7f5949 Update models for event sourcing 2026-05-31 23:02:35 +09:00
oysteikt 9fecab17e8 .gitea/workflows: init test pipeline 2026-05-31 23:02:35 +09:00
oysteikt 48a6421468 Set up testing with pytest and co 2026-05-31 23:02:35 +09:00
oysteikt 2ae7aa6d0a Write specification for economy 2026-05-31 23:02:35 +09:00
oysteikt 267af00ebd menus/helpermenus: don't search for users with empty string 2026-05-31 23:02:05 +09:00
oysteikt 8dbb7e6787 menus/editing: print positive number on adjusting stock down 2026-05-31 22:55:24 +09:00
oysteikt 8f00777607 .mailmap: init 2026-05-31 22:52:08 +09:00
oysteikt b3cdfd67e4 {flake.lock,uv.lock}: bump 2026-05-31 22:41:45 +09:00
vegardbm e3962d02c7 remove parentheses for yes/no questions 2026-02-16 19:37:38 +01:00
vegardbm a4c4079324 use convention for yes/no questions 2026-02-14 19:36:51 +01:00
oysteikt fb0f24cb67 fix database verification for views 2026-02-05 02:50:11 +09:00
oysteikt 3d555ca9d1 menus/faq: fix indentation 2026-02-05 01:52:56 +09:00
oysteikt af5710d663 verify database connection before starting 2026-02-05 01:39:40 +09:00
oysteikt 4d88409e97 helpers: fix search_user 2026-02-05 01:39:12 +09:00
oysteikt 72cd066414 example-config.toml: fix sqlite default path 2026-02-05 01:38:35 +09:00
oysteikt b1bb1e556b Add --version flag to cli 2026-02-05 00:41:06 +09:00
oysteikt 70b04c0c45 Fix a bunch more lints 2026-02-04 22:59:18 +09:00
oysteikt 7bea5b0b96 Remove need for clear 2026-02-04 22:16:45 +09:00
oysteikt 3123b8b474 loop: disable autocommits, reset db session on looping 2026-02-04 00:38:40 +09:00
oysteikt 9091adedad stats: fix balance stat when missing database rows 2026-02-04 00:34:45 +09:00
oysteikt 94955cb706 treewide: fix a bunch more typing issues 2026-02-04 00:28:29 +09:00
oysteikt 3b6cd1d354 buymenu: fix warning message escapes 2026-02-04 00:24:36 +09:00
oysteikt c2ee66c394 treewide: format 2026-02-04 00:01:38 +09:00
oysteikt b5b2706085 helpermenus: add some more types 2026-02-04 00:01:17 +09:00
oysteikt bf9cea7dfc loop: disable autoflushing, don't expire session on commit 2026-02-03 23:32:19 +09:00
oysteikt cf945143ba treewide: fix a bunch of lints 2026-02-03 23:24:37 +09:00
oysteikt e84b43e2a0 pyproject.toml: add ruff linting rules 2026-02-03 23:24:19 +09:00
oysteikt 17fc23ba97 menus/Menu: never unset sql_session 2026-02-03 23:02:11 +09:00
oysteikt 45179a9c43 loop: don't overload main name 2026-02-03 23:01:36 +09:00
oysteikt dfaa818f46 treewide: rollback if commit was unsuccessful 2026-02-03 22:52:43 +09:00
oysteikt ec43f67e58 flake.nix: fix nix run 2026-01-27 19:42:21 +09:00
oysteikt 1b09a904cb menus/mainmenu: register sql session in menu 2026-01-27 19:40:17 +09:00
oysteikt 8e84669d9b Temporarily disable brother-ql + friends, update to python 3.13 2026-01-26 13:02:34 +09:00
oysteikt 1d01e1b2cb package.nix: add clear to $PATH 2026-01-26 02:30:10 +09:00
oysteikt 019f419b12 models: a bit of back population 2026-01-25 22:54:01 +09:00
oysteikt 3bab62b3ac treewide: types, types and more types 2026-01-25 22:53:45 +09:00
oysteikt e771fb0240 Propagate sql_session through constructors 2026-01-25 18:38:22 +09:00
oysteikt 2331e53795 config: structured database config 2026-01-25 18:08:50 +09:00
oysteikt 2ae651a1fa README: add link to wiki docs 2026-01-25 18:08:49 +09:00
oysteikt 76f07841be module.nix: fix lib.getExe warnings 2026-01-25 18:08:49 +09:00
oysteikt ecaec99212 Replace configparser with tomllib 2026-01-25 18:08:49 +09:00
oysteikt cb385097dc README: add note about vm 2026-01-11 22:36:51 +09:00
oysteikt b86962ef0e flake.nix: system -> stdenv.hostPlatform.system 2026-01-09 06:14:35 +09:00
oysteikt 9c0bd54be6 parse config file argument as Path 2026-01-09 05:45:43 +09:00
oysteikt 919d7a5afe assert database_url is present 2026-01-09 05:45:42 +09:00
oysteikt ddca959ad6 pyproject.toml: psycopg2 -> psycopg2-binary 2026-01-09 05:45:40 +09:00