Fixed probs
This commit is contained in:
parent
0fbf9ed9e4
commit
c3be26fa51
|
@ -32,7 +32,9 @@ def check_games(context: Context) -> Prediction:
|
||||||
p.reasons.append("Alexanders upstairs neighbour is currently playing league")
|
p.reasons.append("Alexanders upstairs neighbour is currently playing league")
|
||||||
p.probability = 0.8
|
p.probability = 0.8
|
||||||
else:
|
else:
|
||||||
|
last_game_in_hours = min(24.0, last_game_in_hours)
|
||||||
|
|
||||||
p.reasons.append(f"Alexanders upstairs neighbour has not played league for {last_game_in_hours} hours!")
|
p.reasons.append(f"Alexanders upstairs neighbour has not played league for {last_game_in_hours} hours!")
|
||||||
p.probability = last_game_in_hours / 24
|
p.probability = 1 - (last_game_in_hours / 24)
|
||||||
|
|
||||||
return p
|
return p
|
||||||
|
|
Loading…
Reference in New Issue
Block a user