IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 16, 2012, 10:48:54 AM (14 years ago)
Author:
rhenders
Message:

checking how many actual rows have been written to the temp pending table

File:
1 edited

Legend:

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

    r33726 r33785  
    12721272
    12731273        self.execute("CREATE TEMPORARY TABLE all_pending (stage_id bigint(20), ra_bore float, dec_bore float)")
    1274         count = 0
    12751274        for row in rows:
    12761275
     
    12791278                       VALUES (%d, %f, %f)" % (row[0], row[1], row[2])
    12801279                self.execute(sql)
    1281                 count += 1
    12821280            except: continue
    12831281
    1284         self.logger.infoPair("All items written to Db", "%d" % count)
     1282        count = self.getRowCount("all_pending")
     1283        self.logger.infoPair("Items written to Db", "%d" % count)
    12851284
    12861285    '''
Note: See TracChangeset for help on using the changeset viewer.