fixing codeQL scan issues

This commit is contained in:
Salman Paracha 2025-12-23 14:13:06 -08:00
parent d934210c3c
commit e03fdf484c

View file

@ -299,7 +299,7 @@ async def invoke_weather_agent(
# Extract specific number of days if mentioned (e.g., "5 day forecast")
import re
day_match = re.search(r"(\d+)\s*day", last_user_msg)
day_match = re.search(r"(\d{1,2})\s+day", last_user_msg)
if day_match:
requested_days = int(day_match.group(1))
days = min(requested_days, 16) # API supports max 16 days