Skip to content

Commit

Permalink
Merge pull request #767 from fstagni/cherry-pick-2-57f4fd29-integration
Browse files Browse the repository at this point in the history
[sweep:integration] fix: fix pylint3.2 errors
  • Loading branch information
fstagni authored May 16, 2024
2 parents 32d6ab7 + ebee0b5 commit 28ab1b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/WebAppDIRAC/WebApp/handler/JobMonitorHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def web_jobAction(self, JobID):
ids = [int(i) for i in ids]

RPC = JobManagerClient()
result = None
if self.get_argument("action") == "delete":
result = RPC.deleteJob(ids)
elif self.get_argument("action") == "kill":
Expand Down
3 changes: 2 additions & 1 deletion src/WebAppDIRAC/WebApp/handler/TokenManagerHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
import jwt

from DIRAC import gConfig, gLogger
from DIRAC import gLogger
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getAllUsers
from DIRAC.FrameworkSystem.Client.TokenManagerClient import TokenManagerClient

Expand Down Expand Up @@ -93,6 +93,7 @@ def web_tokenData(self, userid: str, data_kind: str) -> dict:
:return: dict
"""
if (result := self.tm.getTokensByUserID(userid))["OK"]:
res = ""
if data_kind == "getAccessToken":
res = (
str(jwt.decode(result["Value"][0]["access_token"], options={"verify_signature": False}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def web_executeOperation(self, action, ids):

def __fileRetry(self, prodid, mode):
tsClient = TransformationClient()
result = None
if mode == "proc":
result = tsClient.getTransformationFilesCount(prodid, "ErrorCount", {"Status": "Processed"})
elif mode == "not":
Expand Down

0 comments on commit 28ab1b0

Please sign in to comment.