From 25038d5398773dba3bf6f863f4ccfb9a36d6c354 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Thu, 10 May 2012 08:19:21 -0500 Subject: [PATCH] fixed mongo select? perhaps --- VERSION | 2 +- gluon/dal.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 2c2117c9..0711774f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-05-07 17:40:22) dev +Version 1.99.7 (2012-05-10 08:17:55) dev diff --git a/gluon/dal.py b/gluon/dal.py index 1570c41c..35842989 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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))