修复loadHistoryData中的bug

This commit is contained in:
chenxy123 2016-08-29 22:14:44 +08:00
parent 3c1a72c25f
commit 19bc8ce4fe

View File

@ -130,6 +130,7 @@ class BacktestingEngine(object):
initCursor = collection.find(flt) initCursor = collection.find(flt)
# 将数据从查询指针中读取出,并生成列表 # 将数据从查询指针中读取出,并生成列表
self.initData = [] # 清空initData列表
for d in initCursor: for d in initCursor:
data = dataClass() data = dataClass()
data.__dict__ = d data.__dict__ = d