From 1fb5d96e9e85de93fed1a382885b362dcad6213d Mon Sep 17 00:00:00 2001 From: Kelly Date: Sun, 16 Aug 2026 20:41:25 -0700 Subject: [PATCH] Update locationdata.py in re to https://github.com/SpudGunMan/meshing-around/commit/808d87b9cfc3bc6c4aaffe45eab6aa5f11aff000 --- modules/locationdata.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index 705dd40..c965389 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -159,8 +159,11 @@ def getRepeaterBook(lat=0, lon=0): } logger.debug("Location: Using Phase 1 fallback indices (stride=12, issue #332 fix applied)") - # Determine cells per row from max column index - cells_per_row = max(col_indices.values()) + 1 if col_indices else 12 + # Determine cells per row from the actual first data row's count + # This handles cases where tbody rows have more cells than thead headers + tbody = table.find('tbody') + first_row = tbody.find('tr') if tbody else None + cells_per_row = len(first_row.find_all('td')) if first_row else (max(col_indices.values()) + 1 if col_indices else 12) # Parse repeater rows using detected/fallback column indices for i in range(0, len(cells), cells_per_row):