Skip to content

Commit

Permalink
Filter templates: permissions for fp_hists (#274)
Browse files Browse the repository at this point in the history
add missing permissions block in filter template for fp_hists
  • Loading branch information
Theodlz authored Feb 11, 2024
1 parent 6471c56 commit b0a7a05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kowalski/alert_brokers/alert_broker_ztf.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ def make_filter_templates(self, active_filters: Sequence):
pipeline[3]["$project"]["prv_candidates"]["$filter"]["cond"]["$and"][0][
"$in"
][1] = active_filter["permissions"]
if "fp_hists" in pipeline[3]["$project"]:
pipeline[3]["$project"]["fp_hists"]["$filter"]["cond"]["$and"][0][
"$in"
][1] = active_filter["permissions"]

# if autosave is a dict with a pipeline key, also add the upstream pipeline to it:
if (
Expand Down

0 comments on commit b0a7a05

Please sign in to comment.