Skip to content

Commit

Permalink
PEP8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
gpichot committed Aug 6, 2015
1 parent 192d368 commit 308ee4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions paiji2_weather/templatetags/weather_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import django.utils.simplejson as json


class WeatherFetcher(object):
"""fetch Weather information from openweathermap API"""

Expand Down Expand Up @@ -63,8 +64,10 @@ def fetchWeather(self):
]
description = current_description + forcast_description

icons = [self.icon_mapper[w['weather'][0]['icon'][:2]]
for x in forcast['list']]
icons = [
self.icon_mapper[w['weather'][0]['icon'][:2]]
for x in forcast['list']
]

for x in xrange(4):
list_weather.append({
Expand Down

0 comments on commit 308ee4b

Please sign in to comment.