forked from sass/tipibot
fix(teams): resolve dividers from tab name + full title, not last notice row #9
Reference in New Issue
Block a user
Delete Branch "feat/teamsync-reposition"
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?
Section titles are stacked single-cell rows: the "TipiLAN 2026 CS2" title
sits above notice rows ("If a team withdraws..."), and parse_team_sections
kept only the LAST one, so the notice clobbered the title and resolve_divider
saw no game/year keywords -> None -> teams never positioned.
the game/year title survives alongside the notices.
so the game is taken reliably from the CS2/LoL worksheet name while the year
still comes from the title, keeping year-scoped TEAM_DIVIDER*_2026 vars.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01XPRsW4tazVtYi2jNzVQkre
Section titles are stacked single-cell rows: the "TipiLAN 2026 CS2" title sits above notice rows ("If a team withdraws..."), and parse_team_sections kept only the LAST one, so the notice clobbered the title and resolve_divider saw no game/year keywords -> None -> teams never positioned. - parse_team_sections now accumulates all single-cell rows above a header, so the game/year title survives alongside the notices. - _refresh_teams_sync resolves the divider from "<tab name> <section title>", so the game is taken reliably from the CS2/LoL worksheet name while the year still comes from the title, keeping year-scoped TEAM_DIVIDER_*_2026 vars. - regression test: title survives notice rows and still resolves. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XPRsW4tazVtYi2jNzVQkre