c05d8ddce578dfc50ee817b8aa18f401e83c05b7,QUANTAXIS/QAFetch/QAQuery.py,,QA_fetch_stock_name,#Any#Any#,1059
Before Change
if isinstance(code, str):
try:
return collections.find_one({"code": code})["name"]
except Exception as e:
QA_util_log_info(e)
return code
elif isinstance(code, list):
After Change
if isinstance(code, str):
try:
res = collections.find_one({"code": code})
return res["name"]
except Exception as e:
if (res is None):
QA_util_log_info(u"请检查mongodb quantaxis.stock_list collection 是否为空。")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: QUANTAXIS/QUANTAXIS
Commit Name: c05d8ddce578dfc50ee817b8aa18f401e83c05b7
Time: 2020-06-02
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_stock_name
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 3b04b330535105e8b1f3257e1ebd8a845fa6c8bf
Time: 2018-02-24
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAPortfolio.py
Class Name: QA_Portfolio
Method Name: pull
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 3b04b330535105e8b1f3257e1ebd8a845fa6c8bf
Time: 2018-02-24
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAPortfolio.py
Class Name: QA_Portfolio
Method Name: push
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: e61276b46037abb733cd44817bf278a15b021fe4
Time: 2020-05-31
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_stock_name