From e33f8e99b7d8ed9eb2fe7f83040e76358b671ecb Mon Sep 17 00:00:00 2001
From: vimal1083 <vimal1083@gmail.com>
Date: Fri, 8 Jan 2021 19:26:31 +0530
Subject: [PATCH] Fix lint issue

---
 hypha/apply/api/v1/filters.py | 16 ++++++++--------
 hypha/apply/api/v1/views.py   |  8 +++++++-
 2 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/hypha/apply/api/v1/filters.py b/hypha/apply/api/v1/filters.py
index df604c8f4..2669523a6 100644
--- a/hypha/apply/api/v1/filters.py
+++ b/hypha/apply/api/v1/filters.py
@@ -48,14 +48,14 @@ class SubmissionsFilter(filters.FilterSet):
         model = ApplicationSubmission
         fields = ('status', 'round', 'active', 'submit_date', 'fund', 'screening_statuses', 'reviewers', 'lead')
 
-        def filter_active(self, qs, name, value):
-            if value is None:
-                return qs
-
-            if value:
-                return qs.active()
-            else:
-                return qs.inactive()
+    def filter_active(self, qs, name, value):
+        if value is None:
+            return qs
+
+        if value:
+            return qs.active()
+        else:
+            return qs.inactive()
 
 
 class NewerThanFilter(filters.ModelChoiceFilter):
diff --git a/hypha/apply/api/v1/views.py b/hypha/apply/api/v1/views.py
index 06da94457..c24de17c0 100644
--- a/hypha/apply/api/v1/views.py
+++ b/hypha/apply/api/v1/views.py
@@ -14,7 +14,13 @@ from hypha.apply.activity.messaging import MESSAGES, messenger
 from hypha.apply.activity.models import COMMENT, Activity
 from hypha.apply.determinations.views import DeterminationCreateOrUpdateView
 from hypha.apply.funds.models import ApplicationSubmission, RoundsAndLabs
-from hypha.apply.funds.tables import get_reviewers, get_round_leads, get_screening_statuses, get_used_rounds, get_used_funds
+from hypha.apply.funds.tables import (
+    get_reviewers,
+    get_round_leads,
+    get_screening_statuses,
+    get_used_funds,
+    get_used_rounds,
+)
 from hypha.apply.funds.workflow import STATUSES
 from hypha.apply.review.models import Review
 
-- 
GitLab