Attendance derived from source
- Problem
- In hybrid sections, whether a week was online or in person changes what present means, and guessing from a fixed schedule breaks the moment a week deviates.
- Approach
- I read it from Populi instead of assuming it. One function derives online versus in-person from each meeting's is_online flag, another anchors the term week number, and assignment cutoffs add a day so a late Sunday submission still lands in the right week.
- Result
- Week classification stays correct as real schedules drift, with no per-course hand-tuning.