mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 12:59:57 +08:00
resolve_module matched a learner's 1-based 'lesson N' against the module 'order' field with int(module['order']) == position. But order is stored 0-based (topic_generation uses order=len(modules); service and outline_revision number with enumerate from 0), so 'lesson 1' matched the module whose order is 1 — the second lesson — and every lesson but the last resolved one too high, sending the learner's hand-off card to the wrong lesson. Take the Nth module by rank in the order sequence instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>