use specific formatter for 'current' command

This commit is contained in:
Romain Bignon 2010-12-06 15:26:54 +01:00
commit 31921549a7
3 changed files with 25 additions and 3 deletions

View file

@ -57,7 +57,7 @@ class WeatherPage(BasePage):
for img in div.getiterator("img"):
mtxt = img.attrib["title"]
break
mdate = str(datetime.datetime.now())
mdate = datetime.datetime.now()
yield Current(mdate, temp, mtxt, "C")