mirror of
https://github.com/SocksPls/hltv-api
synced 2025-04-30 07:33:09 +00:00
handels "st" "nd" and "rd"
This commit is contained in:
parent
68ed4126be
commit
aba413bec2
1 changed files with 2 additions and 2 deletions
2
main.py
2
main.py
|
@ -276,7 +276,7 @@ def get_results():
|
|||
resultObj['match-id'] = converters.to_int(res.find("a", {"class": "a-reset"}).get("href").split("/")[-2])
|
||||
|
||||
if (res.parent.find("span", {"class": "standard-headline"})):
|
||||
dateText = res.parent.find("span", {"class": "standard-headline"}).text.replace("Results for ", "").replace("th", "")
|
||||
dateText = res.parent.find("span", {"class": "standard-headline"}).text.replace("Results for ", "").replace("th", "").replace("rd","").replace("st","").replace("nd","")
|
||||
|
||||
dateArr = dateText.split()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue