Closed simonw closed 3 weeks ago
Add support for from:YYYY-MM-DD and to:YYYY-MM-DD clauses in search queries to filter results by created date.
from:YYYY-MM-DD
to:YYYY-MM-DD
Parsing Date Clauses:
parse_date_clauses
from
to
datetime.date
Search Function:
search
created__gte
created__lt
selected
from_date
to_date
For more details, open the Copilot Workspace session.
Add support for
from:YYYY-MM-DD
andto:YYYY-MM-DD
clauses in search queries to filter results by created date.Parsing Date Clauses:
parse_date_clauses
function to extractfrom
andto
date clauses from the search query and convert them todatetime.date
objects.from
andto
date clauses from the search query.Search Function:
search
function to callparse_date_clauses
and handlefrom
andto
dates.created__gte
andcreated__lt
using the parsedfrom
andto
dates.selected
dictionary to includefrom_date
andto_date
.from_date
orto_date
is present.For more details, open the Copilot Workspace session.