Commit 4fff1047 authored by Hermann Krumrey's avatar Hermann Krumrey

Merge branch 'develop' into 'master'

Fix oddsportal type errors

See merge request !7
parents 3862e287 94bb7087
V 0.5.2:
- Fixed oddsportal int conversion issues
V 0.5.1:
- Fixed xvfb-related issues
V 0.5.0:
......
......@@ -157,6 +157,7 @@ class FootballDataFetcher(DataFetcher):
current_matches = [x for x in _current_matches if x is not None]
if len(current_matches) == 0:
retry = 0
self.logger.info("football-data not available, using oddportal")
while retry < 3:
retry += 1
try:
......@@ -255,7 +256,9 @@ class FootballDataFetcher(DataFetcher):
if name in bookmakers:
bookmaker_odds = []
for index in range(1, 4):
fraction = [int(x) for x in tds[index].text.split("/")]
fraction = [
float(x) for x in tds[index].text.split("/")
]
odds_number = 1.0 + (fraction[0] / fraction[1])
bookmaker_odds.append(odds_number)
bookmaker_odds_tuple = (
......
0.5.1
\ No newline at end of file
0.5.2
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment