@@ -56,27 +56,27 @@ def getJobsAttributes(cls, *args, **kwargs):
5656 types_getApplicationStates = []
5757
5858 @classmethod
59- def export_getApplicationStates (cls , condDict = None , older = None , newer = None ):
59+ def export_getApplicationStates (cls ):
6060 """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" )
6262
6363 ##############################################################################
6464 types_getJobTypes = []
6565
6666 @classmethod
67- def export_getJobTypes (cls , condDict = None , older = None , newer = None ):
67+ def export_getJobTypes (cls ):
6868 """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" )
7070
7171 ##############################################################################
7272 types_getOwners = []
7373
7474 @classmethod
75- def export_getOwners (cls , condDict = None , older = None , newer = None ):
75+ def export_getOwners (cls ):
7676 """
7777 Return Distinct Values of Owner job Attribute in WMS
7878 """
79- return cls .jobDB .getDistinctJobAttributes ( "Owner" , condDict , older , newer )
79+ return cls .jobDB ._query ( "SELECT DISTINCT Owner FROM JobsHistorySummary" )
8080
8181 ##############################################################################
8282 types_getOwnerGroup = []
@@ -86,47 +86,47 @@ def export_getOwnerGroup(cls):
8686 """
8787 Return Distinct Values of OwnerGroup from the JobDB
8888 """
89- return cls .jobDB .getDistinctJobAttributes ( " OwnerGroup" )
89+ return cls .jobDB ._query ( "SELECT DISTINCT OwnerGroup FROM JobsHistorySummary " )
9090
9191 ##############################################################################
9292 types_getJobGroups = []
9393
9494 @classmethod
95- def export_getJobGroups (cls , condDict = None , older = None , cutDate = None ):
95+ def export_getJobGroups (cls ):
9696 """
9797 Return Distinct Values of ProductionId job Attribute in WMS
9898 """
99- return cls .jobDB .getDistinctJobAttributes ( "JobGroup" , condDict , older , newer = cutDate )
99+ return cls .jobDB ._query ( "SELECT DISTINCT JobGroup FROM JobsHistorySummary" )
100100
101101 ##############################################################################
102102 types_getSites = []
103103
104104 @classmethod
105- def export_getSites (cls , condDict = None , older = None , newer = None ):
105+ def export_getSites (cls ):
106106 """
107107 Return Distinct Values of Site job Attribute in WMS
108108 """
109- return cls .jobDB .getDistinctJobAttributes ( "Site" , condDict , older , newer )
109+ return cls .jobDB ._query ( "SELECT DISTINCT Site FROM JobsHistorySummary" )
110110
111111 ##############################################################################
112112 types_getStates = []
113113
114114 @classmethod
115- def export_getStates (cls , condDict = None , older = None , newer = None ):
115+ def export_getStates (cls ):
116116 """
117117 Return Distinct Values of Status job Attribute in WMS
118118 """
119- return cls .jobDB .getDistinctJobAttributes ( "Status" , condDict , older , newer )
119+ return cls .jobDB ._query ( "SELECT DISTINCT Status FROM JobsHistorySummary" )
120120
121121 ##############################################################################
122122 types_getMinorStates = []
123123
124124 @classmethod
125- def export_getMinorStates (cls , condDict = None , older = None , newer = None ):
125+ def export_getMinorStates (cls ):
126126 """
127127 Return Distinct Values of Minor Status job Attribute in WMS
128128 """
129- return cls .jobDB .getDistinctJobAttributes ( "MinorStatus" , condDict , older , newer )
129+ return cls .jobDB ._query ( "SELECT DISTINCT MinorStatus FROM JobsHistorySummary" )
130130
131131 ##############################################################################
132132 types_getJobs = []
0 commit comments