Skip to content

Commit

Permalink
Fix/assistant none type (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly authored Jan 23, 2024
1 parent 501caf0 commit 9525ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/tools/provider/builtin/yahoo/tools/analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _invoke(self, user_id: str, tool_paramters: Dict[str, Any]) \

stock_data = download(symbol, start=time_range[0], end=time_range[1])
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 = []
for i in range(max_segments):
start_idx = i * rows_per_segment
Expand Down

0 comments on commit 9525ca0

Please sign in to comment.