From e737d4235a57a04a5238d1c29f26b9662fc48a9d Mon Sep 17 00:00:00 2001 From: SecretlyTaco Date: Sun, 18 Sep 2016 09:15:57 +0100 Subject: [PATCH] matchids are now ints --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)