Unverified Commit 9525ca08 authored by Yeuoly's avatar Yeuoly Committed by GitHub

Fix/assistant none type (#2143)

parent 501caf0a
...@@ -33,7 +33,7 @@ class YahooFinanceAnalyticsTool(BuiltinTool): ...@@ -33,7 +33,7 @@ class YahooFinanceAnalyticsTool(BuiltinTool):
stock_data = download(symbol, start=time_range[0], end=time_range[1]) stock_data = download(symbol, start=time_range[0], end=time_range[1])
max_segments = min(15, len(stock_data)) max_segments = min(15, len(stock_data))
rows_per_segment = len(stock_data) // max_segments rows_per_segment = len(stock_data) // (max_segments or 1)
summary_data = [] summary_data = []
for i in range(max_segments): for i in range(max_segments):
start_idx = i * rows_per_segment start_idx = i * rows_per_segment
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment