From 8a39f95424bad462d87f79657be952010ac78724 Mon Sep 17 00:00:00 2001 From: shayanaijaz Date: Wed, 23 Aug 2023 15:35:28 -0500 Subject: [PATCH] linting --- server/portal/apps/workspace/api/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/portal/apps/workspace/api/views.py b/server/portal/apps/workspace/api/views.py index 74fa93aac..6e4f5d3d8 100644 --- a/server/portal/apps/workspace/api/views.py +++ b/server/portal/apps/workspace/api/views.py @@ -138,7 +138,7 @@ def get(self, request, *args, **kwargs): @method_decorator(login_required, name='dispatch') class JobsView(BaseApiView): - + @staticmethod def check_job_for_timeout(job): if hasattr(job, 'notes') and job.status == 'FAILED': @@ -148,9 +148,9 @@ def check_job_for_timeout(job): if notes.get('isInteractive', False) and job.remoteResultInfo == '0:0': job.status = 'FINISHED' job.remoteOutcome = 'FINISHED' - + return job - + def get(self, request, operation=None): allowed_actions = ['listing', 'search', 'select'] @@ -164,7 +164,7 @@ def get(self, request, operation=None): data = op(tapis, request) if (isinstance(data, list)): - for index, job in enumerate(data): + for index, job in enumerate(data): data[index] = self.check_job_for_timeout(job) else: data = self.check_job_for_timeout(data)