use specific formatter for 'current' command
This commit is contained in:
parent
6a857021c7
commit
31921549a7
3 changed files with 25 additions and 3 deletions
|
|
@ -37,8 +37,8 @@ class Current(CapBaseObject):
|
|||
def __init__(self, date, temp, text, unit):
|
||||
CapBaseObject.__init__(self, date)
|
||||
self.add_field('date', (basestring,datetime), date)
|
||||
self.add_field('temp', (int,float), temp)
|
||||
self.add_field('text', basestring, text)
|
||||
self.add_field('temp', (int,float), temp)
|
||||
self.add_field('unit', basestring, unit)
|
||||
|
||||
class City(CapBaseObject):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue