def QA_fetch_trade_date(collections):
return collections.find()
def QA_fetch_stock_day(code,collections):
list_a=[[],[],[],[],[],[],[]]
for item in collections.find({"code":str(code)[0:6]}):
After Change
for item in collections.find({}):
data.append(item["date"])
print(len(data))
return data
def QA_fetch_stock_day(code,collections):
list_a=[[],[],[],[],[],[],[]]