Commit Graph

69 Commits

Author SHA1 Message Date
a8d1f8d38b Simplify fields name in the database 2025-01-27 23:07:10 +01:00
f529d15133 Allow more advanced migration action through a companion python file 2025-01-27 22:23:54 +01:00
2f2325c26b Add missing checkboxes counter alias 2025-01-27 18:41:44 +01:00
36a04b91d0 Remove confusing reference to number for sets 2025-01-27 18:40:51 +01:00
84f1b24b5a Deduplicate minifigures 2025-01-27 18:40:07 +01:00
2f6177865b Rename load to from_set for clarity 2025-01-27 17:07:30 +01:00
e90405d2de Inject the socket only where necessary 2025-01-27 14:20:12 +01:00
901add5218 Provide decorator for socket actions, for repetitive tasks like checking if authenticated or ready for Rebrickable actions 2025-01-27 14:15:07 +01:00
e439d2a001 Remove confusing reference to number for sets 2025-01-27 12:04:20 +01:00
7094015976 Rename routes 2025-01-27 11:21:15 +01:00
c97dc4a2ff Remove unused insert_rebrickable 2025-01-27 10:16:03 +01:00
b84552b352 Rename download_rebrickable to insert_rebrickable and make it return if an insertion occured 2025-01-27 10:16:03 +01:00
5e02a902d4 Grey out legacy database tables in the admin 2025-01-27 10:16:03 +01:00
b489cd1ec3 Add a flag to hide instructions in a set card 2025-01-27 10:16:03 +01:00
48ad7b5f02 Trim the url in the progress message to make it more legible 2025-01-25 22:48:10 +01:00
cf9e716d1c Remove unused 'ADD_SET' socket message 2025-01-25 22:43:54 +01:00
c4a1a17cfd Dowloads instructions through a socket 2025-01-25 22:42:59 +01:00
ed44fb9bab Global cleanup of the code, implementing all the comments for the issue 2025-01-25 19:02:46 +01:00
6d3285dbc9 Move parse_number out of RebrickableSet as it imports way too much for such a simple function 2025-01-25 19:02:38 +01:00
52f73d5bf9 Moved code and added env variables 2025-01-24 21:22:57 +01:00
6abf4a314f Merge remote-tracking branch 'origin/master' into instructions 2025-01-24 19:40:30 +01:00
6320629b07 Moved code from views to instructions.py 2025-01-24 17:20:53 +01:00
4a785df532 Moved from code around 2025-01-24 17:08:56 +01:00
5ebdf89c85 Bump version to 1.1.0 2025-01-24 15:59:45 +01:00
d22ca2c7cb Fix RebrickableSet not using url in database for sets 2025-01-24 12:04:15 +01:00
6c342ec3f3 Remove debug print from BrickSQLMigration 2025-01-24 11:52:46 +01:00
eaa14d2341 Remove unused SQL initialize function 2025-01-24 10:37:03 +01:00
c075b525a8 Unquoted SQL identifiers 2025-01-24 10:36:46 +01:00
d063062780 Separate bricktracker sets from rebrickable sets (dedup), introduce custom checkboxes 2025-01-24 10:36:24 +01:00
57d9f167a5 Allow exception_handler to pass kwargs to the wrapped function 2025-01-24 10:27:06 +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
053bf75e05 Added instructions downloader from Rebrickable. 2025-01-22 22:41:35 +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
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