Changeset 32141 for trunk/ippToPsps/jython/ipptopspsdb.py
- Timestamp:
- Aug 19, 2011, 11:48:34 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/ipptopspsdb.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/ipptopspsdb.py
r32122 r32141 59 59 Returns a list of processed batch IDs that are merged but not yet deleted 60 60 ''' 61 def getMergedButNotDeletedBatchIDs(self, epoch, dvoGpc1Label):61 def getMergedButNotDeletedBatchIDs(self, batchType, epoch, dvoGpc1Label): 62 62 63 63 sql = "SELECT DISTINCT batch_id \ 64 64 FROM batch \ 65 65 WHERE timestamp > '" + epoch + "' \ 66 AND batch_type = '" + batchType + "' \ 66 67 AND dvo_db = '" + dvoGpc1Label + "' \ 67 68 AND merged \ … … 174 175 175 176 hours = minutes/60.0 176 days = float(hours)/24.0177 weeks = float(days)/7.0177 days = hours/24.0 178 weeks = days/7.0 178 179 179 180 if minutes < 60: return "%.1f minutes ago" % minutes … … 237 238 Updates min/max object ID on this table and batch 238 239 ''' 239 def update MinMaxObjID(self, batchID, minObjID, maxObjID):240 def updateDetectionStats(self, batchID, minObjID, maxObjID, totalDetections): 240 241 241 242 sql = "UPDATE batch SET \ 242 243 min_obj_id = " + str(minObjID) + ", \ 243 max_obj_id = " + str(maxObjID) + " \ 244 max_obj_id = " + str(maxObjID) + ", \ 245 total_detections = " + str(totalDetections) + " \ 244 246 WHERE batch_id = " + str(batchID) 245 247
Note:
See TracChangeset
for help on using the changeset viewer.
