Skip to content

Commit

Permalink
fix query failures on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Dec 12, 2015
1 parent 1db027c commit e4cd348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/querydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, filePath, readonly=True, app_logger=None):

self.log.info("init -- filePath: " + filePath + " mode: " + mode)

self.f = tables.open_file(filePath, mode)
self.f = tables.open_file(filePath, mode=mode)

def __enter__(self):
self.log.info('querydb __enter')
Expand All @@ -70,7 +70,7 @@ def doQuery(self, path, query, start=0, stop=-1, step=1, limit=None):
for field in dset.colnames:
item.append(row[field])
values.append(item)
indexes.append(row.nrow)
indexes.append(int(row.nrow)) # convert numpy.int64 to int
count += 1

if limit and (count == limit):
Expand Down

0 comments on commit e4cd348

Please sign in to comment.