Skip to content

Commit 47a9a44

Browse files
authored
Merge pull request #50 from cmdrchkn/main
fix upstream table header skip test for sb8200
2 parents 8277724 + 50d15e4 commit 47a9a44

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/arris_stats_sb8200.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ def parse_html_sb8200(html):
5858
if table_row.th:
5959
continue
6060

61+
channel_id = table_row.find_all('td')[1].text.strip()
62+
6163
# Some firmwares have a header row not already skiped by "if table_row.th", skip it if channel_id isn't an integer
6264
if not channel_id.isdigit():
6365
continue
6466

65-
channel_id = table_row.find_all('td')[1].text.strip()
6667
frequency = table_row.find_all('td')[4].text.replace(" Hz", "").strip()
6768
power = table_row.find_all('td')[6].text.replace(" dBmV", "").strip()
6869

0 commit comments

Comments
 (0)