From b358bd3564320eef89953013addb71db351d7c7d Mon Sep 17 00:00:00 2001 From: oldwain Date: Mon, 27 Feb 2017 16:14:46 +0800 Subject: [PATCH] fix ClientEngine.dbQuery without return --- vn.trader/vtClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vn.trader/vtClient.py b/vn.trader/vtClient.py index dfe51ba7..3df352ce 100644 --- a/vn.trader/vtClient.py +++ b/vn.trader/vtClient.py @@ -120,7 +120,7 @@ class ClientEngine(object): #---------------------------------------------------------------------- def dbQuery(self, dbName, collectionName, d): """从MongoDB中读取数据,d是查询要求,返回的是数据库查询的数据列表""" - self.client.dbQuery(dbName, collectionName, d) + return self.client.dbQuery(dbName, collectionName, d) #---------------------------------------------------------------------- def dbUpdate(self, dbName, collectionName, d, flt, upsert=False):