search/engine: Increase range to a whole year

This is still not the ideal solution, but now that we have widgetry
that can handle hundreds of thousands of events, no limitations to
the maximum number of events, and no crashes related on the search
engine, we can increase the search range to a broader value and
show more results.

Helps: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/624
This commit is contained in:
Georges Basile Stavracas Neto
2023-04-22 10:22:57 +00:00
parent d7b2a7d88c
commit 7b68931973
+2 -2
View File
@@ -225,8 +225,8 @@ gcal_search_engine_search (GcalSearchEngine *self,
timezone = gcal_context_get_timezone (self->context);
now = g_date_time_new_now (timezone);
range_start = g_date_time_add_weeks (now, -1);
range_end = g_date_time_add_weeks (now, 3);
range_start = g_date_time_add_months (now, -6);
range_end = g_date_time_add_months (now, 6);
model = gcal_search_model_new (cancellable, range_start, range_end);
gcal_timeline_set_filter (self->timeline, search_query);