From d940f152ef076d420f71bf27236493eea9c5bb44 Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Fri, 30 Aug 2024 00:31:41 +0200 Subject: [PATCH] feat: Support aggregating by date in getTransformationFilesCount --- src/DIRAC/TransformationSystem/DB/TransformationDB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/TransformationSystem/DB/TransformationDB.py b/src/DIRAC/TransformationSystem/DB/TransformationDB.py index 37ec1b752cd..174188b5b28 100755 --- a/src/DIRAC/TransformationSystem/DB/TransformationDB.py +++ b/src/DIRAC/TransformationSystem/DB/TransformationDB.py @@ -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"]: