IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32162 for trunk/ippToPsps


Ignore:
Timestamp:
Aug 22, 2011, 8:19:51 AM (15 years ago)
Author:
rhenders
Message:

alreadyProcessed() method now taking batch type as a parameter, as of course it always should have

Location:
trunk/ippToPsps/jython
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/ipptopsps.py

    r32119 r32162  
    5454    for id in ids:
    5555
    56         if not FORCE and ippToPspsDb.alreadyProcessed(id): continue
     56        if not FORCE and ippToPspsDb.alreadyProcessed(batchType, id): continue
    5757
    5858        if batchType == "P2":
  • trunk/ippToPsps/jython/ipptopspsdb.py

    r32141 r32162  
    294294    Have we already processed and published this batch?
    295295    '''
    296     def alreadyProcessed(self, stage_id):
     296    def alreadyProcessed(self, batchType, stage_id):
    297297
    298298        sql = "SELECT COUNT(*) \
    299299               FROM batch \
    300300               WHERE stage_id = " + str(stage_id) + " \
     301               AND batch_type = '" + batchType + "' \
    301302               AND processed \
    302303               AND loaded_to_datastore"
Note: See TracChangeset for help on using the changeset viewer.