mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Fix jpl table formatting
This commit is contained in:
parent
0f6a52c75d
commit
89a5f50a1d
1 changed files with 4 additions and 1 deletions
|
|
@ -169,7 +169,10 @@ def _format_row(row):
|
|||
"""
|
||||
Function that formats a row into a list for Tabulate to use
|
||||
"""
|
||||
scoresArray = list([td.renderContents().decode("utf-8") for td in row.find_all("td")])[:9]
|
||||
tds = row.find_all("td")
|
||||
tds.pop(1) # Relegation icon
|
||||
tds.pop(1) # Copy of team name
|
||||
scoresArray = list([td.renderContents().decode("utf-8") for td in tds])[:9]
|
||||
|
||||
# Insert the team name into the list
|
||||
scoresArray.insert(1, row.find_all("a")[0].renderContents().decode("utf-8").split("<!--")[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue