diff --git a/w.py b/w.py index 5b1b1e9..964bf99 100644 --- a/w.py +++ b/w.py @@ -9,7 +9,7 @@ from datetime import date, datetime, time, timedelta from pprint import pprint import platform from urllib2 import urlopen -from pprint import pprint + @@ -23,6 +23,7 @@ def getLocation(): city = data['city'] country=data['country'] region=data['region'] + return data @@ -42,7 +43,7 @@ with open('wstations.json') as data_file: for wstation, value in data.iteritems(): if wstation == s2s: - pprint(value) + wstation_int = value