1
0
Fork 0
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:
SecretlyTaco 2016-09-18 09:15:57 +01:00
parent 987313b43e
commit e737d4235a

View file

@ -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)