@@ -56,27 +56,27 @@ def getJobsAttributes(cls, *args, **kwargs):
56
56
types_getApplicationStates = []
57
57
58
58
@classmethod
59
- def export_getApplicationStates (cls , condDict = None , older = None , newer = None ):
59
+ def export_getApplicationStates (cls ):
60
60
"""Return Distinct Values of ApplicationStatus job Attribute in WMS"""
61
- return cls .jobDB .getDistinctJobAttributes ( "ApplicationStatus" , condDict , older , newer )
61
+ return cls .jobDB ._query ( "SELECT DISTINCT ApplicationStatus FROM JobsHistorySummary" )
62
62
63
63
##############################################################################
64
64
types_getJobTypes = []
65
65
66
66
@classmethod
67
- def export_getJobTypes (cls , condDict = None , older = None , newer = None ):
67
+ def export_getJobTypes (cls ):
68
68
"""Return Distinct Values of JobType job Attribute in WMS"""
69
- return cls .jobDB .getDistinctJobAttributes ( "JobType" , condDict , older , newer )
69
+ return cls .jobDB ._query ( "SELECT DISTINCT JobType FROM JobsHistorySummary" )
70
70
71
71
##############################################################################
72
72
types_getOwners = []
73
73
74
74
@classmethod
75
- def export_getOwners (cls , condDict = None , older = None , newer = None ):
75
+ def export_getOwners (cls ):
76
76
"""
77
77
Return Distinct Values of Owner job Attribute in WMS
78
78
"""
79
- return cls .jobDB .getDistinctJobAttributes ( "Owner" , condDict , older , newer )
79
+ return cls .jobDB ._query ( "SELECT DISTINCT Owner FROM JobsHistorySummary" )
80
80
81
81
##############################################################################
82
82
types_getOwnerGroup = []
@@ -86,47 +86,47 @@ def export_getOwnerGroup(cls):
86
86
"""
87
87
Return Distinct Values of OwnerGroup from the JobDB
88
88
"""
89
- return cls .jobDB .getDistinctJobAttributes ( " OwnerGroup" )
89
+ return cls .jobDB ._query ( "SELECT DISTINCT OwnerGroup FROM JobsHistorySummary " )
90
90
91
91
##############################################################################
92
92
types_getJobGroups = []
93
93
94
94
@classmethod
95
- def export_getJobGroups (cls , condDict = None , older = None , cutDate = None ):
95
+ def export_getJobGroups (cls ):
96
96
"""
97
97
Return Distinct Values of ProductionId job Attribute in WMS
98
98
"""
99
- return cls .jobDB .getDistinctJobAttributes ( "JobGroup" , condDict , older , newer = cutDate )
99
+ return cls .jobDB ._query ( "SELECT DISTINCT JobGroup FROM JobsHistorySummary" )
100
100
101
101
##############################################################################
102
102
types_getSites = []
103
103
104
104
@classmethod
105
- def export_getSites (cls , condDict = None , older = None , newer = None ):
105
+ def export_getSites (cls ):
106
106
"""
107
107
Return Distinct Values of Site job Attribute in WMS
108
108
"""
109
- return cls .jobDB .getDistinctJobAttributes ( "Site" , condDict , older , newer )
109
+ return cls .jobDB ._query ( "SELECT DISTINCT Site FROM JobsHistorySummary" )
110
110
111
111
##############################################################################
112
112
types_getStates = []
113
113
114
114
@classmethod
115
- def export_getStates (cls , condDict = None , older = None , newer = None ):
115
+ def export_getStates (cls ):
116
116
"""
117
117
Return Distinct Values of Status job Attribute in WMS
118
118
"""
119
- return cls .jobDB .getDistinctJobAttributes ( "Status" , condDict , older , newer )
119
+ return cls .jobDB ._query ( "SELECT DISTINCT Status FROM JobsHistorySummary" )
120
120
121
121
##############################################################################
122
122
types_getMinorStates = []
123
123
124
124
@classmethod
125
- def export_getMinorStates (cls , condDict = None , older = None , newer = None ):
125
+ def export_getMinorStates (cls ):
126
126
"""
127
127
Return Distinct Values of Minor Status job Attribute in WMS
128
128
"""
129
- return cls .jobDB .getDistinctJobAttributes ( "MinorStatus" , condDict , older , newer )
129
+ return cls .jobDB ._query ( "SELECT DISTINCT MinorStatus FROM JobsHistorySummary" )
130
130
131
131
##############################################################################
132
132
types_getJobs = []
0 commit comments