Skip to content

Commit

Permalink
Dont return historic planning items by default (superdesk#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Jan 28, 2021
1 parent 037e117 commit dfba83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/planning/search/queries/planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def search_date(params: Dict[str, Any], query: elastic.ElasticQuery):

def search_date_default(params: Dict[str, Any], query: elastic.ElasticQuery):
date_filter, start_date, end_date, tz_offset = get_date_params(params)
only_future = strtobool(params.get('only_future', False))
only_future = strtobool(params.get('only_future', True))

if not date_filter and not start_date and not end_date and only_future:
field_name = '_planning_schedule.scheduled'
Expand Down

0 comments on commit dfba83f

Please sign in to comment.