Skip to content

Commit

Permalink
fix: setup introduced by merging
Browse files Browse the repository at this point in the history
  • Loading branch information
keshav1998 committed Dec 3, 2024
1 parent a79ea0e commit a432519
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,7 @@ def __init__(self, **kwargs: Any) -> None:

def setup(self) -> None:
"""Setup the behaviour."""
self.read_bets()
has_bet_in_the_past = any(bet.n_bets > 0 for bet in self.bets)
if has_bet_in_the_past:
if self.benchmarking_mode.enabled:
random.seed(self.benchmarking_mode.randomness)
else:
random.seed(self.synchronized_data.most_voted_randomness)
self.should_rebet = random.random() <= self.params.rebet_chance # nosec
rebetting_status = "enabled" if self.should_rebet else "disabled"
self.context.logger.info(f"Rebetting {rebetting_status}.")
pass

def processable_bet(self, bet: Bet, now: int) -> bool:
"""Whether we can process the given bet."""
Expand Down

0 comments on commit a432519

Please sign in to comment.