Skip to content

Commit 2c7e363

Browse files
committed
fix (TS): explicitely cast keys to str in getTransformationFilesCount
1 parent 701a0eb commit 2c7e363

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/DIRAC/TransformationSystem/DB/TransformationDB.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
""" DIRAC Transformation DB
1+
"""DIRAC Transformation DB
22
3-
Transformation database is used to collect and serve the necessary information
4-
in order to automate the task of job preparation for high level transformations.
5-
This class is typically used as a base class for more specific data processing
6-
databases
3+
Transformation database is used to collect and serve the necessary information
4+
in order to automate the task of job preparation for high level transformations.
5+
This class is typically used as a base class for more specific data processing
6+
databases
77
"""
88

99
import re
@@ -706,7 +706,7 @@ def getTransformationFilesCount(self, transName, field, selection=None, connecti
706706
res = self.getCounters("TransformationFiles", ["TransformationID", field], selection)
707707
if not res["OK"]:
708708
return res
709-
countDict = {attrDict[field]: count for attrDict, count in res["Value"]}
709+
countDict = {str(attrDict[field]): count for attrDict, count in res["Value"]}
710710
countDict["Total"] = sum(countDict.values())
711711
return S_OK(countDict)
712712

0 commit comments

Comments
 (0)