feat(v1.1): item 6 — dry-catalog messaging (forged batches with 0 fresh are labeled)

section_state now mirrors the composed recipe at body.recipe; the forge
note appends 'catalog fully reviewed' when the batch has zero fresh cards.
The FE shows the BACKLOG sentence in the report (dryCap) and in the forge
status line whenever recipe.new===0 with cards served; a non-dry forge
behaves exactly as before. No new fetch loops.
This commit is contained in:
Torres
2026-11-13 13:39:22 -04:00
parent 98d345ceee
commit 0d2e5a592f
2 changed files with 19 additions and 2 deletions

View File

@@ -530,6 +530,11 @@ def create_app(db_path, img_dir, state_dir=None):
conn, engine, size=size,
profile_version=prof['version'] if prof else None,
note=note)
# v1.1 item 6: label the dry-catalog state on the forge note
recipe = (json.loads(newsec['recipe'])
if newsec['recipe'] else {})
if recipe.get('new') == 0:
note = '%s · catalog fully reviewed' % (note or '')
return section_state(conn, newsec, note=note)
finally:
conn.close()