weather bot: Fix for integer division in python2 and adjust test.
Fixes #31.
This commit is contained in:
parent
05c527a10f
commit
0a85962097
2 changed files with 2 additions and 2 deletions
|
@ -53,6 +53,6 @@ def to_celsius(temp_kelvin):
|
|||
|
||||
|
||||
def to_fahrenheit(temp_kelvin):
|
||||
return int(temp_kelvin) * 9 / 5 - 459.67
|
||||
return int(temp_kelvin) * (9. / 5.) - 459.67
|
||||
|
||||
handler_class = WeatherHandler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue