Skip to content

Commit

Permalink
Merge pull request #31 from elParaguayo/id_bugfix
Browse files Browse the repository at this point in the history
League bugfix
  • Loading branch information
elParaguayo authored Aug 14, 2016
2 parents 9584d1a + e808308 commit 2c8a81e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/lib/footballscores.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def getLeagues():
# league = option.get("value")[12:]
league = {}
league["name"] = option.text.split("(")[0].strip()
league["id"] = option.get("value")[12:]
league["id"] = option.get("value")[12:].strip()
if league["id"]:
leagues.append(league)

Expand Down Expand Up @@ -1011,7 +1011,7 @@ def getLeagues(self):
leagues = form.findAll("option")
for league in leagues:
l = {}
if league.get("value") <> "":
if league.get("value") != "" and not league.get("value").endswith("competition-"):
l["name"] = league.text
l["id"] = league.get("value")
leaguelist.append(l)
Expand Down

0 comments on commit 2c8a81e

Please sign in to comment.