Australia in Australia strat.
This commit is contained in:
parent
4560ecfb63
commit
7d1b4d4537
|
@ -35,6 +35,14 @@ def australiaStrat(context : Context) -> Prediction:
|
||||||
hour = t.hour
|
hour = t.hour
|
||||||
p = Prediction()
|
p = Prediction()
|
||||||
|
|
||||||
|
if context.in_australia:
|
||||||
|
if hour > 22 or hour < 6:
|
||||||
|
p.probability = 1.0
|
||||||
|
p.reasons.append('It\'s night-time in Australia, and that\'s where we\'re at.')
|
||||||
|
else:
|
||||||
|
p.probability = 0.0
|
||||||
|
p.reasons.append('It\'s day-time in Australia, and that\'s where we\'re at.')
|
||||||
|
else:
|
||||||
if hour > 22 or hour < 6:
|
if hour > 22 or hour < 6:
|
||||||
p.probability = 0.0
|
p.probability = 0.0
|
||||||
p.reasons.append('It\'s night-time in Australia, so it must be day-time here.')
|
p.reasons.append('It\'s night-time in Australia, so it must be day-time here.')
|
||||||
|
|
Loading…
Reference in a new issue