wrong index
All checks were successful
Build and Publish / build_and_publish (push) Successful in 1m17s

This commit is contained in:
Nexus 2024-07-05 00:48:29 +01:00
parent b8f73f3bef
commit ee3c3df289

View file

@ -128,7 +128,7 @@ class ElectionCog(commands.Cog):
self.log.error("failed to parse %r", span)
continue
results[party] = [seats, change, 0, 0]
for child_li in good_soups[1].children:
for child_li in good_soups[0].children:
span = list(child_li.children)[-1]
try:
party, extra = span.get_text().strip().split(":", 1)