Skip to content

Commit

Permalink
max retries error
Browse files Browse the repository at this point in the history
  • Loading branch information
pretrehr committed Sep 5, 2021
1 parent 548c981 commit 264a531
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sportsbetting/user_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,8 +955,6 @@ def best_matches_freebet2(site, freebet, sport, nb_matches=2):
best_odd = odd
best_combine_reduit(best_matches, best_choice, site, freebet, sport, best_odd-1, freebet=True)

def get_matches_with_best_trj(sport, nb_matches):
matches = sorted(sb.ODDS[sport].items(), key=lambda x:trj_match(x[1])[0], reverse=True)[:nb_matches]
def get_matches_with_best_trj(sport, nb_matches, site=None):
matches = sorted(filter(lambda x: not site or site in x[1]["odds"], sb.ODDS[sport].items()), key=lambda x:trj_match(x[1])[0], reverse=True)[:nb_matches]
return {match:odds for match, odds in matches}
Expand Down

0 comments on commit 264a531

Please sign in to comment.