The /bab/<folder> endpoint returned raw get_sub_home_data() output, so lessons had no completed/locked fields and green checkmarks never appeared. api_bab now reads the student token, injects progress via get_ordered_lessons_with_learning_objectives (scoped to the folder's sub-home.md), and computes lock status from prerequisites — matching /lessons. The bab page load also forwards the student token, and tests cover progress injection and prerequisite locking. |
||
|---|---|---|
| .. | ||
| storage | ||
| tests | ||
| __init__.py | ||
| database.py | ||
| lesson_registry.py | ||
| lesson_service.py | ||
| models.py | ||
| progress_status.py | ||
| repositories.py | ||
| student_roundtrip.py | ||
| teacher_bootstrap.py | ||
| token_hashing.py | ||
| token_service.py | ||