parent
56e661b21b
commit
e3ce4adc3d
|
@ -135,8 +135,8 @@ def weather(unit='c', location_query=None):
|
|||
return None
|
||||
query_data = {
|
||||
'q':
|
||||
'use "http://github.com/yql/yql-tables/raw/master/weather/weather.bylocation.xml" as we;'
|
||||
'select * from we where location="{0}" and unit="{1}"'.format(location_query, unit),
|
||||
u'use "http://github.com/yql/yql-tables/raw/master/weather/weather.bylocation.xml" as we;'
|
||||
u'select * from we where location="{0}" and unit="{1}"'.format(location_query, unit).encode('utf-8'),
|
||||
'format': 'json'
|
||||
}
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue