Changeset 32162 for trunk/ippToPsps
- Timestamp:
- Aug 22, 2011, 8:19:51 AM (15 years ago)
- Location:
- trunk/ippToPsps/jython
- Files:
-
- 2 edited
-
ipptopsps.py (modified) (1 diff)
-
ipptopspsdb.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/ipptopsps.py
r32119 r32162 54 54 for id in ids: 55 55 56 if not FORCE and ippToPspsDb.alreadyProcessed( id): continue56 if not FORCE and ippToPspsDb.alreadyProcessed(batchType, id): continue 57 57 58 58 if batchType == "P2": -
trunk/ippToPsps/jython/ipptopspsdb.py
r32141 r32162 294 294 Have we already processed and published this batch? 295 295 ''' 296 def alreadyProcessed(self, stage_id):296 def alreadyProcessed(self, batchType, stage_id): 297 297 298 298 sql = "SELECT COUNT(*) \ 299 299 FROM batch \ 300 300 WHERE stage_id = " + str(stage_id) + " \ 301 AND batch_type = '" + batchType + "' \ 301 302 AND processed \ 302 303 AND loaded_to_datastore"
Note:
See TracChangeset
for help on using the changeset viewer.
