mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fixing codeQL scan issues
This commit is contained in:
parent
d934210c3c
commit
e03fdf484c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue