fix: disambiguate route AM and PM suffixes and prevent partial word matches #10
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/route-am-pm-resolution"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary of Changes
\b(am|morning|pickup)\band\b(pm|afternoon|dropoff)\b) inget_time_suffixand entity name generation. Prevents route names containing substrings like 'am' (e.g.Campus,Program,Oakham,Graham,Durham,William,STEAM) from falsely matching as AM routes when they are actually PM routes.get_run_display_nameto acceptall_runsfor a student. When a student has multiple runs, the run schedules are compared so the earlier planned run is designated as AM and the later run as PM, preventing accidental duplicate PM or AM labels._async_migrate_entity_idsto passrunstoget_run_display_nameand safely handle existing entity ID swaps or temporary transitions.0.2.4._pmsuffixes, relative run schedule comparison, and migration safety.