mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 21:22:39 +01:00
Forgot something
This commit is contained in:
parent
e5ce3c8ee9
commit
0e574d7144
@ -94,8 +94,10 @@ class Weather(callbacks.Privmsg):
|
||||
def _toCelsius(self, temp, unit):
|
||||
if unit == 'K':
|
||||
return temp - 273.15
|
||||
else:
|
||||
elif unit == 'F':
|
||||
return (temp - 32) * 5 /9
|
||||
else:
|
||||
return temp
|
||||
|
||||
def _getTemp(self, temp, deg, unit, chan):
|
||||
assert unit == unit.upper()
|
||||
|
Loading…
Reference in New Issue
Block a user