From 982e3884a88efad82b29607bc6c650860c3adcdc Mon Sep 17 00:00:00 2001 From: richard-dds Date: Tue, 4 Sep 2018 15:12:17 -0400 Subject: [PATCH] Rename to _map_request, since it's a private method --- atst/routes/requests/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atst/routes/requests/index.py b/atst/routes/requests/index.py index ee398255..f0564bdc 100644 --- a/atst/routes/requests/index.py +++ b/atst/routes/requests/index.py @@ -22,7 +22,7 @@ class RequestsIndex(object): def _ccpo_view(self, user): requests = Requests.get_many() - mapped_requests = [self.map_request(r, "ccpo") for r in requests] + mapped_requests = [self._map_request(r, "ccpo") for r in requests] num_action_required = len( [r for r in mapped_requests if r.get("action_required")] ) @@ -40,7 +40,7 @@ class RequestsIndex(object): def _non_ccpo_view(self, user): requests = Requests.get_many(creator=user) - mapped_requests = [self.map_request(r, "mission_owner") for r in requests] + mapped_requests = [self._map_request(r, "mission_owner") for r in requests] num_action_required = len( [r for r in mapped_requests if r.get("action_required")] ) @@ -57,7 +57,7 @@ class RequestsIndex(object): extended_view=False, ) - def map_request(self, request, viewing_role): + def _map_request(self, request, viewing_role): time_created = pendulum.instance(request.time_created) is_new = time_created.add(days=1) > pendulum.now() app_count = request.body.get("details_of_use", {}).get(