Fix more pep8 badlings

This commit is contained in:
Jan Tuomi
2017-09-20 23:35:41 +03:00
parent 68f587f776
commit a99544f967
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class HSLFetcher:
("https://api.reittiopas.fi/hsl/prod/?userhash={}"
"&request=stop&code={}&dep_limit=20&time={}")
.format(settings.HSL_USERHASH, element['code'], time)
).read().decode("utf-8")
).read().decode("utf-8")
parsed = json.loads(src)[0]
arr.append({
+2 -2
View File
@@ -372,8 +372,8 @@ class Rotation(models.Model):
# to avoid excluding items with no expire_date)
now = timezone.now()
instances = self.instances.all()
filtered = filter(lambda i: (i.item.expire_date or now)
>= now, list(instances))
filtered = filter(lambda i: (i.item.expire_date or now) >= now,
list(instances))
instance_list = list(map(lambda i: i.get_dict(), filtered))
return {