tfw: handle negative temps

master
mutantmonkey 2011-11-06 01:42:19 -05:00
parent 7b41ea29bd
commit 0461aab1c1
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def tfw(phenny, input, fahrenheit=False, celsius=False):
# temperature is everything up to first <br /> # temperature is everything up to first <br />
tempt = "" tempt = ""
for c in main[0].text: for c in main[0].text:
if c.isdigit(): if c.isdigit() or c == '-':
tempt += c tempt += c
temp = int(tempt) temp = int(tempt)
deg = chr(176) deg = chr(176)