This commit is contained in:
dsyoon
2024-01-25 10:12:17 +09:00
parent 6dbb7f49c5
commit c3b89e30a8

View File

@@ -735,7 +735,7 @@ class AnalyzerSqlite:
trend_df = pd.DataFrame(trend).fillna(close_list[0])
trend_list = trend_df.values.tolist()
for i, price in enumerate(stock['PRICE']):
price[i]['trend'] = trend_list[i]
price['trend'] = trend_list[i][0]
sorted_stock = sorted(stock["PRICE"], key=lambda x: x['ymd'], reverse=True)
for price in sorted_stock: