Commit d08fe7f
Fix employment history: sort present roles first so current employer fills slot 0
_fill_employment_history iterated work_history in YAML order. work_history[0]
was AMD (Feb 2022–Jan 2025), which was being written into the form's first
employment slot — overwriting the 'Inner Loop' that fill_form had already placed
via the current_company rule.
Sort by present/ongoing first before iterating so the form always gets the
active employer in position 0, regardless of how the user orders work_history
in profile.yaml.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 35e03f7 commit d08fe7f
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
780 | 787 | | |
781 | 788 | | |
782 | 789 | | |
| |||
0 commit comments