Skip to content

Commit

Permalink
fix no odds
Browse files Browse the repository at this point in the history
  • Loading branch information
pretrehr committed Oct 6, 2021
1 parent eaf09dc commit 9f96cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sportsbetting/auxiliary_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def merge_dict_odds(dict_odds, needs_date=True):
if odds:
if list(list(odds.values())[0]["odds"].keys()):
site = list(list(odds.values())[0]["odds"].keys())[0]
if match in odds.keys() and odds[match]["odds"] and odds[match]["odds"][site]:
if match in odds.keys() and odds[match].get("odds") and odds[match]["odds"][site]:
if (not date_found and odds[match].get("date") and odds[match]["date"] != "undefined"):
new_dict[match]["date"] = odds[match]["date"]
date_found = True
Expand Down

1 comment on commit 9f96cf4

@Mohameazzi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

France vs pologne

Please sign in to comment.