forked from github/plane
chore: removed start date and target date filter (#2582)
This commit is contained in:
parent
2cb94b4105
commit
1a24f9ec25
@ -198,7 +198,7 @@ def filter_start_date(params, filter, method):
|
|||||||
date_filter(filter=filter, date_term="start_date", queries=start_dates)
|
date_filter(filter=filter, date_term="start_date", queries=start_dates)
|
||||||
else:
|
else:
|
||||||
if params.get("start_date", None) and len(params.get("start_date")):
|
if params.get("start_date", None) and len(params.get("start_date")):
|
||||||
date_filter(filter=filter, date_term="start_date", queries=params.get("start_date", []))
|
filter["start_date"] = params.get("start_date")
|
||||||
return filter
|
return filter
|
||||||
|
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ def filter_target_date(params, filter, method):
|
|||||||
date_filter(filter=filter, date_term="target_date", queries=target_dates)
|
date_filter(filter=filter, date_term="target_date", queries=target_dates)
|
||||||
else:
|
else:
|
||||||
if params.get("target_date", None) and len(params.get("target_date")):
|
if params.get("target_date", None) and len(params.get("target_date")):
|
||||||
date_filter(filter=filter, date_term="target_date", queries=params.get("target_date", []))
|
filter["target_date"] = params.get("target_date")
|
||||||
return filter
|
return filter
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user