Skip to content

Commit

Permalink
feat: Support aggregating by date in getTransformationFilesCount
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Aug 29, 2024
1 parent a90d7ea commit d940f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DIRAC/TransformationSystem/DB/TransformationDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def getTransformationFilesCount(self, transName, field, selection=None, connecti
connection = res["Value"]["Connection"]
transID = res["Value"]["TransformationID"]
selection["TransformationID"] = transID
if field not in self.TRANSFILEPARAMS:
if field not in self.TRANSFILEPARAMS + ["date(LastUpdate)", "date(InsertedTime)"]:
return S_ERROR("Supplied field not in TransformationFiles table")
res = self.getCounters("TransformationFiles", ["TransformationID", field], selection)
if not res["OK"]:
Expand Down

0 comments on commit d940f15

Please sign in to comment.