1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-04-30 07:33:09 +00:00

fix(get_matches): add hltv domain to url

This commit is contained in:
David Silva 2022-05-28 14:22:37 +02:00
parent f296947331
commit ab17ce1d30

View file

@ -234,7 +234,7 @@ def get_matches():
matchObj = {}
matchObj['date'] = date
matchObj['url'] = match.find("a", {"class": "match a-reset"}).get("href")
matchObj['url'] = "https://hltv.org" + match.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()