mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 13:55:45 +02:00
parent
56e661b21b
commit
e3ce4adc3d
@ -135,8 +135,8 @@ def weather(unit='c', location_query=None):
|
|||||||
return None
|
return None
|
||||||
query_data = {
|
query_data = {
|
||||||
'q':
|
'q':
|
||||||
'use "http://github.com/yql/yql-tables/raw/master/weather/weather.bylocation.xml" as we;'
|
u'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'select * from we where location="{0}" and unit="{1}"'.format(location_query, unit).encode('utf-8'),
|
||||||
'format': 'json'
|
'format': 'json'
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user