Feat(inventoryStore): add possibility to turn off output filtering

This commit is contained in:
Johannes Kirschbauer
2025-05-27 19:11:21 +02:00
parent 8ea35b2b99
commit a49466e1a9

View File

@@ -132,7 +132,10 @@ class InventoryStore:
- and more
"""
raw_value = self._flake.select("clanInternals.inventoryClass.inventory")
if self._keys:
filtered = {k: v for k, v in raw_value.items() if k in self._keys}
else:
filtered = raw_value
sanitized = sanitize(filtered, self._allowed_path_transforms, [])
return sanitized