From 52d4828e1d9ded9b828d2e9947a661e2b8f92062 Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Sat, 25 Mar 2023 23:57:31 +0530 Subject: [PATCH] fix: issue filters for start date and target date (#530) --- apiserver/plane/utils/issue_filters.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apiserver/plane/utils/issue_filters.py b/apiserver/plane/utils/issue_filters.py index f4af1fafd..81ee30bac 100644 --- a/apiserver/plane/utils/issue_filters.py +++ b/apiserver/plane/utils/issue_filters.py @@ -96,9 +96,9 @@ def filter_created_at(params, filter, method): def filter_updated_at(params, filter, method): if method == "GET": - updated_bys = params.get("updated_at").split(",") - if len(updated_bys) and "" not in updated_bys: - for query in updated_bys: + updated_ats = params.get("updated_at").split(",") + if len(updated_ats) and "" not in updated_ats: + for query in updated_ats: updated_at_query = query.split(";") if len(updated_at_query) == 2 and "after" in updated_at_query: filter["updated_at__date__gte"] = updated_at_query[0] @@ -116,7 +116,7 @@ def filter_updated_at(params, filter, method): def filter_start_date(params, filter, method): if method == "GET": - start_dates = params.get("start_date").split(";") + start_dates = params.get("start_date").split(",") if len(start_dates) and "" not in start_dates: for query in start_dates: start_date_query = query.split(";") @@ -136,7 +136,7 @@ def filter_start_date(params, filter, method): def filter_target_date(params, filter, method): if method == "GET": - target_dates = params.get("target_date").split(";") + target_dates = params.get("target_date").split(",") if len(target_dates) and "" not in target_dates: for query in target_dates: target_date_query = query.split(";")