diff --git a/main.py b/main.py index 0d7efd1..7cfb3e7 100644 --- a/main.py +++ b/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)