fix: update default date range for Google Calendar events and improve query parameter handling

This commit is contained in:
Anish Sarkar 2026-01-30 19:55:48 +05:30
parent 6fb656fd8f
commit 4526b656a4
3 changed files with 28 additions and 16 deletions

View file

@ -191,10 +191,10 @@ async def index_google_calendar_events(
)
else:
calculated_start_date = datetime.now() - timedelta(
days=30
) # Use 30 days as default for calendar events
days=365
) # Use 365 days as default for calendar events (matches frontend)
logger.info(
f"No last_indexed_at found, using {calculated_start_date.strftime('%Y-%m-%d')} (30 days ago) as start date"
f"No last_indexed_at found, using {calculated_start_date.strftime('%Y-%m-%d')} (365 days ago) as start date"
)
# Use calculated dates if not provided