Skip to content

Commit

Permalink
add start_of_week config in scheduled planning export [SDESK-7264] (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro authored May 13, 2024
1 parent c3c4197 commit c53fc59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/planning/commands/export_scheduled_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ def should_export(self, schedule, now_local):
return True

def _export_filter(self, search_filter, schedule):
start_of_week = app.config.get("START_OF_WEEK") or 0

items = get_resource_service("events_planning_search").search_by_filter_id(
search_filter["_id"], projections=["_id"]
search_filter["_id"], projections=["_id"], args={"start_of_week": start_of_week}
)

if not items.count():
Expand Down

0 comments on commit c53fc59

Please sign in to comment.