Skip to content

Commit

Permalink
fix: removed unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Jan 16, 2024
1 parent c1e17c0 commit 5db3bc7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/DIRAC/WorkloadManagementSystem/DB/PilotAgentsDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,26 +176,6 @@ def countPilots(self, condDict, older=None, newer=None, timeStamp="SubmissionTim

return S_OK(result["Value"][0][0])

#########################################################################################
def getPilotGroups(self, groupList=["Status", "OwnerGroup", "GridType"], condDict={}):
"""
Get all exisiting combinations of groupList Values
"""

cmd = f"SELECT {', '.join(groupList)} from PilotAgents "

condList = []
for cond in condDict:
condList.append('{} in ( "{}" )'.format(cond, '", "'.join([str(y) for y in condDict[cond]])))

# the conditions should be escaped before hand, so it is not really nice to expose it this way...
if condList:
cmd += f" WHERE {' AND '.join(condList)} "

cmd += f" GROUP BY {', '.join(groupList)}"

return self._query(cmd)

##########################################################################################
def deletePilots(self, pilotIDs, conn=False):
"""Delete Pilots with IDs in the given list from the PilotAgentsDB"""
Expand Down

0 comments on commit 5db3bc7

Please sign in to comment.