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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| auth.py | ||
| compile.py | ||
| help.py | ||
| lessons.py | ||
| progress.py | ||
| quiz_attempts.py | ||
| student_management.py | ||