e61276b46037abb733cd44817bf278a15b021fe4,QUANTAXIS/QAFetch/QAQuery.py,,QA_fetch_stock_name,#Any#Any#,1059

Before Change


            ]
        )
        //data["date"] = pd.to_datetime(data["date"])
        return data.set_index("code", drop=False)["name"]


def QA_fetch_index_name(code, collections=DATABASE.index_list):
    

After Change


            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 是否为空。")
            QA_util_log_info(e)
            return code
    elif isinstance(code, list):
        code = QA_util_code_tolist(code)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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: 43460d35354b29171d1b346ad65d9dd90e54472b
Time: 2018-06-14
Author: 157747074@qq.com
File Name: QUANTAXIS/QASU/save_binance.py
Class Name:
Method Name: QA_SU_save_binance


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