1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-04-29 23:23:08 +00:00

fix(get_matches): getMatch

This commit is contained in:
David Silva 2022-05-30 10:40:49 +02:00
parent 9a477b3eb9
commit 23873657ab

View file

@ -234,7 +234,7 @@ def get_matches():
matchObj = {}
matchObj['date'] = date
matchObj['url'] = "https://hltv.org" + match.find("a", {"class": "match a-reset"}).get("href")
matchObj['url'] = "https://hltv.org" + getMatch.find("a", {"class": "match a-reset"}).get("href")
matchObj['time'] = getMatch.find("div", {"class": "matchTime"}).text
if getMatch.find("div", {"class": "matchEvent"}):
matchObj['event'] = getMatch.find("div", {"class": "matchEvent"}).text.encode('utf8').strip()