diff options
| author | Glenn Elliott <gelliott@cs.unc.edu> | 2014-10-01 09:58:36 -0400 |
|---|---|---|
| committer | Glenn Elliott <gelliott@cs.unc.edu> | 2014-10-01 09:58:36 -0400 |
| commit | 792b1faa70da3906b22a462c7e2132e761161bc8 (patch) | |
| tree | a6a64bfa09e8c5d95a3f8ee8817eb259eb32d1c2 | |
| parent | 12be3e0468a6dab819738d4bd863ea98867589fe (diff) | |
fix bug in fetching design points
| -rwxr-xr-x | rtss14/database.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtss14/database.py b/rtss14/database.py index 0f9a917..f445ab2 100755 --- a/rtss14/database.py +++ b/rtss14/database.py | |||
| @@ -358,7 +358,7 @@ def __get_design_points(conn, ndp): | |||
| 358 | dp_ids = [r['id'] for r in rows] | 358 | dp_ids = [r['id'] for r in rows] |
| 359 | c.execute('UPDATE dp_pending SET taken=1 WHERE id IN (%s)' % ','.join(['%s']*len(dp_ids)), tuple(dp_ids)) | 359 | c.execute('UPDATE dp_pending SET taken=1 WHERE id IN (%s)' % ','.join(['%s']*len(dp_ids)), tuple(dp_ids)) |
| 360 | end_sync(conn) | 360 | end_sync(conn) |
| 361 | fetched = [dp_to_dp(r) for r in rows] | 361 | fetched = [db_to_dp(r) for r in rows] |
| 362 | except db.OperationalError, e: | 362 | except db.OperationalError, e: |
| 363 | print e | 363 | print e |
| 364 | print 'Last Query: %s' % c._last_executed | 364 | print 'Last Query: %s' % c._last_executed |
