Commit 12c09c42c081d1a87f700f5d4ef0458bb5f0929b
1 parent
d8f8e4dd
Exists in
master
and in
7 other branches
Fix flake8
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Matheus Faria <matheus.sousa.faria@gmail.com> Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
colab/plugins/utils/filters_importer.py
| ... | ... | @@ -4,6 +4,7 @@ import importlib |
| 4 | 4 | |
| 5 | 5 | from django.conf import settings |
| 6 | 6 | |
| 7 | + | |
| 7 | 8 | def import_plugin_filters(request): |
| 8 | 9 | plugin_filters = {} |
| 9 | 10 | for app_name in settings.INSTALLED_APPS: |
| ... | ... | @@ -18,5 +19,4 @@ def import_plugin_filters(request): |
| 18 | 19 | if get_filters: |
| 19 | 20 | plugin_filters.update(get_filters(request)) |
| 20 | 21 | |
| 21 | - | |
| 22 | 22 | return plugin_filters | ... | ... |
colab/search/views.py
| ... | ... | @@ -7,6 +7,7 @@ from haystack.views import SearchView |
| 7 | 7 | from colab.plugins.utils import filters_importer |
| 8 | 8 | from colab.super_archives.models import MailingList |
| 9 | 9 | |
| 10 | + | |
| 10 | 11 | class ColabSearchView(SearchView): |
| 11 | 12 | def extra_context(self, *args, **kwargs): |
| 12 | 13 | |
| ... | ... | @@ -66,8 +67,8 @@ class ColabSearchView(SearchView): |
| 66 | 67 | |
| 67 | 68 | types.update(filters_importer.import_plugin_filters(self.request)) |
| 68 | 69 | |
| 69 | - filters_options = [(k, v['name'], v['icon']) \ | |
| 70 | - for (k,v) in types.iteritems()] | |
| 70 | + filters_options = [(k, v['name'], v['icon']) | |
| 71 | + for (k, v) in types.iteritems()] | |
| 71 | 72 | return dict( |
| 72 | 73 | filters=types.get(type_chosen), |
| 73 | 74 | filters_options=filters_options, | ... | ... |