fixed mongo select? perhaps

This commit is contained in:
Massimo Di Pierro
2012-05-10 08:19:21 -05:00
parent 1a5512b3bf
commit 25038d5398
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-05-07 17:40:22) dev
Version 1.99.7 (2012-05-10 08:17:55) dev
+3 -2
View File
@@ -4694,10 +4694,11 @@ class MongoDBAdapter(NoSQLAdapter):
print "mongo_list_dicts=%s" % mongo_list_dicts
rows = []
colnames = []
for record in mongo_list_dicts:
for k,record in enumerate(mongo_list_dicts):
row=[]
for column in record:
colnames.append(column)
if k==0:
colnames.append(column)
if withId and (column == '_id'):
if isinstance(record[column],pymongo.objectid.ObjectId):
row.append( int(str(record[column]),16))