Changeset 32002 for trunk/ippToPsps/jython/ipptopspsdb.py
- Timestamp:
- Aug 3, 2011, 12:44:36 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/ipptopspsdb.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/ipptopspsdb.py
r31864 r32002 59 59 TODO 60 60 ''' 61 def getProcessedIDsForThisStage(self, batchType, startDate):61 def getProcessedIDsForThisStage(self, batchType, epoch, dvoGpc1Label): 62 62 63 63 sql = "SELECT DISTINCT stage_id \ 64 64 FROM batch \ 65 65 WHERE batch_type = '" + batchType + "' \ 66 AND timestamp > '" + startDate + "' \ 66 AND timestamp > '" + epoch + "' \ 67 AND dvo_db = '" + dvoGpc1Label + "' \ 67 68 AND loaded_to_datastore" 68 69 … … 157 158 TODO 158 159 ''' 159 def getFailedBatches(self, batchType, startTime, endTime=""):160 def getFailedBatches(self, batchType, epoch, dvoGpc1Label): 160 161 161 162 sql = "SELECT DISTINCT stage_id \ 162 163 FROM batch \ 163 WHERE timestamp > '" + startTime+ "' \164 WHERE timestamp > '" + epoch + "' \ 164 165 AND batch_type = '" + batchType + "' \ 166 AND dvo_db = '" + dvoGpc1Label + "' \ 165 167 AND !processed" 166 168
Note:
See TracChangeset
for help on using the changeset viewer.
