mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-02 16:31:09 -05: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):
|
def _toCelsius(self, temp, unit):
|
||||||
if unit == 'K':
|
if unit == 'K':
|
||||||
return temp - 273.15
|
return temp - 273.15
|
||||||
else:
|
elif unit == 'F':
|
||||||
return (temp - 32) * 5 /9
|
return (temp - 32) * 5 /9
|
||||||
|
else:
|
||||||
|
return temp
|
||||||
|
|
||||||
def _getTemp(self, temp, deg, unit, chan):
|
def _getTemp(self, temp, deg, unit, chan):
|
||||||
assert unit == unit.upper()
|
assert unit == unit.upper()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user