Don't recursively find spans
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 8s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 8s
This commit is contained in:
parent
16bd14bdc1
commit
8c94ee8655
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class ElectionCog(commands.Cog):
|
||||||
results: dict[str, list[int]] = {}
|
results: dict[str, list[int]] = {}
|
||||||
for child_ul in good_soup.children:
|
for child_ul in good_soup.children:
|
||||||
child_ul: BeautifulSoup
|
child_ul: BeautifulSoup
|
||||||
span = child_ul.find("span")
|
span = child_ul.find("span", recursive=False)
|
||||||
if not span:
|
if not span:
|
||||||
self.log.warning("%r did not have a 'span' element.", child_ul)
|
self.log.warning("%r did not have a 'span' element.", child_ul)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue