mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 17:56:25 +02:00
fix: update default date range for Google Calendar events and improve query parameter handling
This commit is contained in:
parent
6fb656fd8f
commit
4526b656a4
3 changed files with 28 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue