Commit Graph
5 Commits
Author SHA1 Message Date
jessikitty 89f65e2d74 Add automatic instruction fetcher for official sets
Downloads official instruction PDFs from LEGO, located via the Brickset API, one set per interval (10 minutes by default) so neither API gets hammered. Official sets only; MOCs are excluded throughout.

- New admin page at /admin/instruction-fetch: queue builder, pacing controls, live countdown and per-set job history

- Database-backed queue (instruction_fetch_jobs) and last-run timestamp, so pacing survives restarts

- Background worker thread, plus 'flask instructions queue/run/status' for Task Scheduler or cron

- SHA-256 dedupe (instructions.sha256), PDF header check, size cap and streaming downloads via temp files

- brickset_api: getInstructions2 by set number and getInstructions by setID (the old code sent a set number to the setID method); getSets params now proper JSON; getKeyUsageStats added

- Schema top-ups applied automatically at boot: new table plus instructions.sha256/source

- Docker: fetcher env vars passed through compose, no worker thread in the entrypoint bootstrap
2026-09-26 13:43:17 +10:00
jessikitty 842ef065e1 Add Docker deployment runbook 2026-09-24 19:49:48 +10:00
jessikitty f01d4b3f58 Add backup and Docker migration runbook 2026-09-24 14:33:34 +10:00
jessikitty d09732cf78 Update documentation: Global numbering is now the default standard 2025-12-15 00:41:57 +11:00
jessikitty 7216fa00b7 Add comprehensive documentation for MOC auto-generation feature 2025-12-15 00:36:55 +11:00