Repository navigation
Readback 0.2.0 is the rewards-and-catalog release: the loop that keeps a reader coming back, and a way to fill the shelf with real Accelerated Reader data without typing quiz numbers by hand.
New
AR catalog lookup (optional). /parent/ar or readback ar-search "the hunger games" searches Accelerated Reader BookFind and shows what a teacher sees: AR quiz number, ATOS level, interest level, point value, catalog summary. readback ar-add <id> (or the Add to shelf button) copies the entry onto the shelf, keyed by quiz number so adding twice updates one row. No AR quiz content is copied — questions are still generated locally and held for parent review. If the site's markup changes, the lookup fails loudly instead of returning an empty list.
Stars. 0–3 per attempt (3 at 90%, 2 at 70%, 1 for a pass), on the result card and the finished-book list.
Reading goals. A points target per reader with 25-point milestones, a progress bar on the shelf, a nudge after each quiz, and a Goal getter badge.
Badges. First finish, Bookworm, Shelf hunter, Century club, Week warrior, Perfect page, Goal getter. Derived from history on every render rather than stored, so correcting a rule cannot leave a stale trophy behind.
Stickers. Pin an emoji to a book from the books page; unpinned books get a deterministic fallback so the shelf never looks unfinished.
Reports. Five weeks of points per reader as bars, average quiz score, badge progress, and recent reading events.
Books without a quiz. A reader can log a finished book from their shelf. It lands in the same ledger (points once per book), counts as a book finished, and exports with an empty quiz_id.
Book removal from the books page, behind an explicit confirmation checkbox, cascading to quizzes, questions, attempts, and ledger rows.
Upgrading
Starting the app or running readback init-db migrates a 0.1.x database in place: AR catalog columns on books, new goals and book_stickers tables, and attempts rebuilt with a nullable quiz_id plus kind. The rebuild copies answers and ledger rows across with foreign keys off; tests/test_migration.py proves it against a real 0.1.0 schema and runs PRAGMA foreign_key_check. Back up the SQLite file first if the log matters to you.
Verification
pytest -q: 260 passed (185 before this release), no network in tests.- Live checks against arbookfind.com: search returned 20 hits for "the hunger games"; detail fetch +
ar-addstored quiz 123740, BL 5.3, MG+, 15 pts; a second add updated the same row. - Demo seeder now ships three goals, three stickers, and a manual read; the README stills were recaptured from it.
docker buildcould not be verified on this machine — the build container has no DNS here, sopip installcannot reach PyPI. The image definition is unchanged.