Flake8 cleanups.
This commit is contained in:
@@ -61,7 +61,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
}
|
||||
)
|
||||
|
||||
menu_object.bind_links(links=(link_execute, link_view), sources=(Statistic,))
|
||||
menu_object.bind_links(
|
||||
links=(link_execute, link_view), sources=(Statistic,)
|
||||
)
|
||||
menu_object.bind_links(
|
||||
links=(link_namespace_details,), sources=(StatisticNamespace,)
|
||||
)
|
||||
|
||||
@@ -116,7 +116,9 @@ class Statistic(object):
|
||||
|
||||
StatisticResult.objects.filter(slug=self.slug).delete()
|
||||
|
||||
statistic_result, created = StatisticResult.objects.get_or_create(slug=self.slug)
|
||||
statistic_result, created = StatisticResult.objects.get_or_create(
|
||||
slug=self.slug
|
||||
)
|
||||
statistic_result.store_data(data=results)
|
||||
|
||||
def get_results(self):
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.contrib.auth import get_user_model
|
||||
|
||||
from common.tests.test_views import GenericViewTestCase
|
||||
|
||||
from user_management.tests.literals import (
|
||||
|
||||
@@ -4,9 +4,7 @@ from django.core.urlresolvers import reverse
|
||||
from django.http import Http404
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from common.generics import (
|
||||
ConfirmView, SimpleView, SingleObjectDetailView, SingleObjectListView
|
||||
)
|
||||
from common.generics import ConfirmView, SimpleView, SingleObjectListView
|
||||
|
||||
from .classes import Statistic, StatisticNamespace
|
||||
from .permissions import permission_statistics_view
|
||||
@@ -75,7 +73,9 @@ class StatisticQueueView(ConfirmView):
|
||||
# Translators: This text is asking users if they want to queue
|
||||
# (to send to the queue) a statistic for it to be update ahead
|
||||
# of schedule
|
||||
'title': _('Queue statistic "%s" to be updated?') % self.get_object(),
|
||||
'title': _(
|
||||
'Queue statistic "%s" to be updated?'
|
||||
) % self.get_object(),
|
||||
}
|
||||
|
||||
def get_object(self):
|
||||
|
||||
Reference in New Issue
Block a user