mirror of
https://github.com/SocksPls/hltv-api
synced 2025-04-30 07:33:09 +00:00
matchids are now ints
This commit is contained in:
parent
987313b43e
commit
e737d4235a
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -155,7 +155,7 @@ def get_matches():
|
|||
matchd['team2'] = team2
|
||||
|
||||
# include link (id) to match page
|
||||
matchd['matchid'] = match.find("div", {"class": "matchActionCell"}).find("a").get('href').split("-")[0].split("/")[-1] #What a fucking mess lmao
|
||||
matchd['matchid'] = int(match.find("div", {"class": "matchActionCell"}).find("a").get('href').split("-")[0].split("/")[-1]) #What a fucking mess lmao
|
||||
|
||||
matches_list.append(matchd)
|
||||
except:
|
||||
|
@ -199,7 +199,7 @@ def get_results():
|
|||
team2['score'] = converters.to_int(scores.split("-")[1].strip(), regexp=True)
|
||||
resultd['team2'] = team2
|
||||
|
||||
resultd['matchid'] = result.find("div", {"class": "matchActionCell"}).find("a").get('href').split("-")[0].split("/")[-1] #What a fucking mess lmao
|
||||
resultd['matchid'] = int(result.find("div", {"class": "matchActionCell"}).find("a").get('href').split("-")[0].split("/")[-1]) #What a fucking mess lmao
|
||||
|
||||
results_list.append(resultd)
|
||||
return(results_list)
|
||||
|
|
Loading…
Add table
Reference in a new issue