Fixed probs

This commit is contained in:
Alexander Munch-Hansen 2019-04-06 16:50:46 +02:00
parent 0fbf9ed9e4
commit c3be26fa51

View file

@ -32,7 +32,9 @@ def check_games(context: Context) -> Prediction:
p.reasons.append("Alexanders upstairs neighbour is currently playing league")
p.probability = 0.8
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.probability = last_game_in_hours / 24
p.probability = 1 - (last_game_in_hours / 24)
return p