Exemplo n.º 1
0
 def get(self):
     meta = provision_weather_data()
     return meta
Exemplo n.º 2
0
    def get(self):
        data = provision_weather_data()
        daily_keys = ['as_of', 'daily']

        today = dict([(i, data[i]) for i in daily_keys if i in data])
        return today
Exemplo n.º 3
0
    def get(self):
        data = provision_weather_data()
        current_keys = ['as_of', 'currently']

        weather = dict([(i, data[i]) for i in current_keys if i in data])
        return weather
Exemplo n.º 4
0
 def get(self):
     meta = provision_weather_data()
     return meta
Exemplo n.º 5
0
    def get(self):
        data = provision_weather_data()
        daily_keys = ['as_of', 'daily']

        today = dict([(i, data[i]) for i in daily_keys if i in data])
        return today
Exemplo n.º 6
0
    def get(self):
        data = provision_weather_data()
        current_keys = ['as_of', 'currently']

        weather = dict([(i, data[i]) for i in current_keys if i in data])
        return weather