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
return res["name"]
except Exception as e:
if (res is None):
QA_util_log_info(u"请检查mongodb quantaxis.stock_list collection 是否为空。")
QA_util_log_info(e)
return code
elif isinstance(code, list):
code = QA_util_code_tolist(code)
In pattern: SUPERPATTERN
Frequency: 3
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: e61276b46037abb733cd44817bf278a15b021fe4
Time: 2020-05-31
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_stock_name
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: d0bfaa2292ccc5acd63c2374f03a6ef92bfd851c
Time: 2017-12-09
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: select_best_ip