Skip to content

Commit

Permalink
Merge pull request voxel51#1949 from voxel51/bugfix/app-masks
Browse files Browse the repository at this point in the history
Fix App masks
  • Loading branch information
brimoor authored Jul 18, 2022
2 parents 2c1cc5d + 070be9e commit 7347ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fiftyone/server/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ def get_collection_name() -> str:
def modifier(doc: dict) -> dict:
doc["id"] = doc.pop("_id")
doc["default_mask_targets"] = _convert_targets(
doc.get("default_mask_targets", [])
doc.get("default_mask_targets", {})
)
doc["mask_targets"] = [
NamedTargets(name, _convert_targets(targets))
for name, targets in doc.get("mask_targets", []).items()
for name, targets in doc.get("mask_targets", {}).items()
]
doc["sample_fields"] = _flatten_fields([], doc["sample_fields"])
doc["frame_fields"] = _flatten_fields([], doc["frame_fields"])
Expand Down

0 comments on commit 7347ef1

Please sign in to comment.