@@ -336,25 +336,25 @@ def export_getSiteSummarySelectors(cls):
336
336
types_getApplicationStates = []
337
337
338
338
@classmethod
339
- def export_getApplicationStates (cls , condDict = None , older = None , newer = None ):
339
+ def export_getApplicationStates (cls ):
340
340
"""Return Distinct Values of ApplicationStatus job Attribute in WMS"""
341
- return cls .jobDB .getDistinctJobAttributes ( "ApplicationStatus" , condDict , older , newer )
341
+ return cls .jobDB ._query ( "SELECT DISTINCT ApplicationStatus FROM JobsHistorySummary" )
342
342
343
343
types_getJobTypes = []
344
344
345
345
@classmethod
346
- def export_getJobTypes (cls , condDict = None , older = None , newer = None ):
346
+ def export_getJobTypes (cls ):
347
347
"""Return Distinct Values of JobType job Attribute in WMS"""
348
- return cls .jobDB .getDistinctJobAttributes ( "JobType" , condDict , older , newer )
348
+ return cls .jobDB ._query ( "SELECT DISTINCT JobType FROM JobsHistorySummary" )
349
349
350
350
types_getOwners = []
351
351
352
352
@classmethod
353
- def export_getOwners (cls , condDict = None , older = None , newer = None ):
353
+ def export_getOwners (cls ):
354
354
"""
355
355
Return Distinct Values of Owner job Attribute in WMS
356
356
"""
357
- return cls .jobDB .getDistinctJobAttributes ( "Owner" , condDict , older , newer )
357
+ return cls .jobDB ._query ( "SELECT DISTINCT Owner FROM JobsHistorySummary" )
358
358
359
359
types_getOwnerGroup = []
360
360
@@ -363,43 +363,43 @@ def export_getOwnerGroup(cls):
363
363
"""
364
364
Return Distinct Values of OwnerGroup from the JobDB
365
365
"""
366
- return cls .jobDB .getDistinctJobAttributes ( " OwnerGroup" )
366
+ return cls .jobDB ._query ( "SELECT DISTINCT OwnerGroup FROM JobsHistorySummary " )
367
367
368
368
types_getJobGroups = []
369
369
370
370
@classmethod
371
- def export_getJobGroups (cls , condDict = None , older = None , cutDate = None ):
371
+ def export_getJobGroups (cls ):
372
372
"""
373
373
Return Distinct Values of ProductionId job Attribute in WMS
374
374
"""
375
- return cls .jobDB .getDistinctJobAttributes ( "JobGroup" , condDict , older , newer = cutDate )
375
+ return cls .jobDB ._query ( "SELECT DISTINCT JobGroup FROM JobsHistorySummary" )
376
376
377
377
types_getSites = []
378
378
379
379
@classmethod
380
- def export_getSites (cls , condDict = None , older = None , newer = None ):
380
+ def export_getSites (cls ):
381
381
"""
382
382
Return Distinct Values of Site job Attribute in WMS
383
383
"""
384
- return cls .jobDB .getDistinctJobAttributes ( "Site" , condDict , older , newer )
384
+ return cls .jobDB ._query ( "SELECT DISTINCT Site FROM JobsHistorySummary" )
385
385
386
386
types_getStates = []
387
387
388
388
@classmethod
389
- def export_getStates (cls , condDict = None , older = None , newer = None ):
389
+ def export_getStates (cls ):
390
390
"""
391
391
Return Distinct Values of Status job Attribute in WMS
392
392
"""
393
- return cls .jobDB .getDistinctJobAttributes ( "Status" , condDict , older , newer )
393
+ return cls .jobDB ._query ( "SELECT DISTINCT Status FROM JobsHistorySummary" )
394
394
395
395
types_getMinorStates = []
396
396
397
397
@classmethod
398
- def export_getMinorStates (cls , condDict = None , older = None , newer = None ):
398
+ def export_getMinorStates (cls ):
399
399
"""
400
400
Return Distinct Values of Minor Status job Attribute in WMS
401
401
"""
402
- return cls .jobDB .getDistinctJobAttributes ( "MinorStatus" , condDict , older , newer )
402
+ return cls .jobDB ._query ( "SELECT DISTINCT MinorStatus FROM JobsHistorySummary" )
403
403
404
404
##############################################################################
405
405
# Transformations
0 commit comments