[Bug #1318] fix htmltable display for wetboobs forecast command
This commit is contained in:
parent
5f433d0a86
commit
bd0d1d3eff
1 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,10 @@ class Temperature(CapBaseObject):
|
||||||
else:
|
else:
|
||||||
return u'%s°C' % int(round((self.value - 32.0) * 5.0 / 9.0))
|
return u'%s°C' % int(round((self.value - 32.0) * 5.0 / 9.0))
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
if self.value and self.unit:
|
||||||
|
return u'%s %s' % (self.value, self.unit)
|
||||||
|
|
||||||
|
|
||||||
class Forecast(CapBaseObject):
|
class Forecast(CapBaseObject):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue