wrong index
All checks were successful
Build and Publish / build_and_publish (push) Successful in 1m17s
All checks were successful
Build and Publish / build_and_publish (push) Successful in 1m17s
This commit is contained in:
parent
b8f73f3bef
commit
ee3c3df289
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ class ElectionCog(commands.Cog):
|
||||||
self.log.error("failed to parse %r", span)
|
self.log.error("failed to parse %r", span)
|
||||||
continue
|
continue
|
||||||
results[party] = [seats, change, 0, 0]
|
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]
|
span = list(child_li.children)[-1]
|
||||||
try:
|
try:
|
||||||
party, extra = span.get_text().strip().split(":", 1)
|
party, extra = span.get_text().strip().split(":", 1)
|
||||||
|
|
Loading…
Reference in a new issue