Fix more pep8 badlings
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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 {
|
||||
|
||||
+2
-2
@@ -410,8 +410,8 @@ def payment_submit(request, *args, **kwargs):
|
||||
"Saved new payment to member register with the following info: {}"
|
||||
.format(form))
|
||||
notification = "{} {}.".format(
|
||||
_("Successfully added payment for member"),
|
||||
form.cleaned_data['member'])
|
||||
_("Successfully added payment for member"),
|
||||
form.cleaned_data['member'])
|
||||
return HttpResponseRedirect(
|
||||
'/members/payments?notification={}'
|
||||
.format(html.escape(notification)))
|
||||
|
||||
Reference in New Issue
Block a user