Explorar el Código

Fix/assistant none type (#2143)

tags/0.5.0
Yeuoly hace 1 año
padre
commit
9525ca08b9
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      api/core/tools/provider/builtin/yahoo/tools/analytics.py

+ 1
- 1
api/core/tools/provider/builtin/yahoo/tools/analytics.py Ver fichero

@@ -33,7 +33,7 @@ class YahooFinanceAnalyticsTool(BuiltinTool):

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

Cargando…
Cancelar
Guardar