aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2014-10-01 14:53:43 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2014-10-01 14:53:43 -0400
commit74ec94e4d8b9b507ffbd96d62a0e68418a6239ea (patch)
tree7ba87cee0be7a2b403765628cff978011f95ea32
parent6313c748e8d62705be71eea54e9da47310b590ed (diff)
add a debug message
-rwxr-xr-xrtss14/database.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtss14/database.py b/rtss14/database.py
index 8141f4c..7f6f195 100755
--- a/rtss14/database.py
+++ b/rtss14/database.py
@@ -357,6 +357,8 @@ def __get_design_points(conn, ndp):
357 c.execute('SELECT id,%s FROM dp_pending WHERE taken=%%s FOR UPDATE' % (','.join(dp_col_names)), (jid,)) 357 c.execute('SELECT id,%s FROM dp_pending WHERE taken=%%s FOR UPDATE' % (','.join(dp_col_names)), (jid,))
358 rows = c.fetchall() 358 rows = c.fetchall()
359 nfetched = c.rowcount 359 nfetched = c.rowcount
360 if nfetched != nclaimed:
361 print 'Claimed %d dps, but only fetched %d' % (nclaimed, nfetched)
360 if nfetched > 0: 362 if nfetched > 0:
361 dp_ids = [r['id'] for r in rows] 363 dp_ids = [r['id'] for r in rows]
362 c.execute('UPDATE dp_pending SET taken=1 WHERE id IN (%s)' % ','.join(['%s']*len(dp_ids)), tuple(dp_ids)) 364 c.execute('UPDATE dp_pending SET taken=1 WHERE id IN (%s)' % ','.join(['%s']*len(dp_ids)), tuple(dp_ids))