Commit Graph

296 Commits

Author SHA1 Message Date
4052ac00ad Ignore static "minifigures" folder from compose.yaml 2025-01-24 10:26:25 +01:00
da2746d2a0 More cleanup of unquoted or misquoted SQL identifiers 2025-01-24 10:25:40 +01:00
9029f6d423 SQLite debug messages 2025-01-24 10:23:29 +01:00
4e1bf08139 Move then select-then-ingest logic into BrickRecord and allow context to be passed to select() 2025-01-24 10:21:05 +01:00
a01d38ee7a Allow BrickRecord insert to force not being defered, as well as overriding its query 2025-01-24 10:11:15 +01:00
b73bd6e99d Fix BrickRecordFields failing on KeyError instead of AttributeError when used with hasattr() 2025-01-24 10:09:50 +01:00
798226932f Split the uncomfortably big admin view into smaller admin views 2025-01-24 10:09:12 +01:00
e2bcd61ace Take a more generic approach at counting all the tables in the database file 2025-01-24 10:03:53 +01:00
5ea9240f34 Make the admin database counters failsafe 2025-01-23 08:59:40 +01:00
3223dd0edc More function definition fixes 2025-01-23 08:58:57 +01:00
a84493908a Make sure number and version are integer in instruction number detection 2025-01-23 08:45:58 +01:00
71af15b16d Add missing whislist database counter in the admin 2025-01-23 08:39:14 +01:00
9aa5bd43ec Added bs4 to requirements.txt 2025-01-22 22:59:45 +01:00
053bf75e05 Added instructions downloader from Rebrickable. 2025-01-22 22:41:35 +01:00
ace4a06b6a Fixed formatting 2025-01-22 17:44:30 +01:00
631df49cd3 Merge pull request 'Add Rebrickable badge to wishlist page' (#46) from matthew/BrickTracker:add-rebrickable-link-to-wishlist into master
Reviewed-on: #46
2025-01-22 17:43:12 +01:00
c977217f48 Fix functions definition with stricter positional or keyword restrictions 2025-01-22 16:36:35 +01:00
0e977fd01d Inject the database version when downloading it 2025-01-22 11:53:11 +01:00
b475bfe8d4 Rework upgrade needed and check upgrade too far as an error for the database 2025-01-22 11:50:31 +01:00
f53c73268f Add Rebrickable badge to wishlist page 2025-01-21 13:43:55 -07:00
a3e50e9b3c Fix indent 2025-01-21 17:25:49 +01:00
2908e80293 Remove debug prints 2025-01-21 17:25:36 +01:00
86fea8cd7d Cosmetics 2025-01-21 11:28:07 +01:00
132892ab0b Fix wrong set_version extraction 2025-01-21 11:27:50 +01:00
14bc9cef26 Use constats for SQL g. variables to avoid any typo 2025-01-21 11:27:27 +01:00
a6ab53efa7 Create the app outside of the global context of app.py to avoid any interference 2025-01-21 11:26:42 +01:00
1b823b158b Remove unused count_none query 2025-01-20 19:39:30 +01:00
ebe0585a40 Quote SQL identifiers as best practice and to avoid any problem in the future 2025-01-20 19:39:12 +01:00
5e99371b39 Incremental forward upgrades of the database 2025-01-20 17:43:15 +01:00
c6e5a6a2d9 Change the way the database counters are displayed to easiliy accomodate for more tables 2025-01-20 16:36:31 +01:00
a857a43288 Clean unused not_from_env property. Every config has an environment variable to configure it 2025-01-20 15:23:10 +01:00
e232e2ab7f Don't store complex objects in Flash config that could mask existing config items, rather store the values and handle the actual list of conf differently 2025-01-20 15:20:07 +01:00
3712356caa Merge pull request 'Add a guide on how to migrate database' (#43) from gregoo/BrickTracker:master into master
Reviewed-on: #43
2025-01-19 11:51:09 +01:00
1d8ea98760 Add a guide on how to migrate database 2025-01-19 11:49:08 +01:00
e2425a106a Merge pull request 'New Year revamp' (#40) from gregoo/BrickTracker:master into master
Reviewed-on: #40
2025-01-19 08:19:01 +01:00
517be96957 Don't add the documentation to the docker image 2025-01-19 00:26:16 +01:00
f1ed402d21 Add new documentation fully contained within the repo 2025-01-19 00:09:34 +01:00
0420af5f95 Add missing order options for most of the new queries 2025-01-18 23:13:36 +01:00
57158f75c8 Remove total and unique counters from accordion headers because they are wrong and misleading 2025-01-18 22:23:20 +01:00
61a1b0ad94 Unbreak the sort part of the missing part input 2025-01-18 21:59:19 +01:00
d4bce7491a Do not use current_user to check if authenticated, go through the LoginManager class 2025-01-18 21:03:16 +01:00
6b62a1f89b Do not show the login page if already logged in 2025-01-18 21:02:43 +01:00
c403029a11 Display the database path in the database section 2025-01-18 20:22:06 +01:00
68c18caaa1 Precise the static path absolute path 2025-01-18 20:21:49 +01:00
5fa51c21a9 Do nothing if the socket is not connected 2025-01-18 18:28:42 +01:00
7b682e5859 Give info about the environment variable name to use when a variable is missing 2025-01-18 17:57:18 +01:00
703d16f331 Do not display upload instructions link if in read only mode 2025-01-18 17:33:10 +01:00
12835f16f0 Display the number of instructions files if there are any 2025-01-18 17:32:50 +01:00
9f46034ff5 Make sure tzdata is included in the dependencies 2025-01-17 23:30:38 +01:00
8264ddb68d Remove all quotes from the env documentation as they would be interpreted as litteral quotes by docker 2025-01-17 23:30:24 +01:00