clan-cli: Make select query reproducible, by sorting select keys

This commit is contained in:
Qubasa
2025-10-22 14:37:01 +02:00
parent 9851993b82
commit f86b0ec3da
2 changed files with 2 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ class InventoryStore:
return sanitize(filtered, self._allowed_path_transforms, [])
def get_readonly_raw(self, keys: set[str]) -> Inventory:
attrs = "{" + ",".join(keys) + "}"
attrs = "{" + ",".join(sorted(keys)) + "}"
return self._flake.select(f"clanInternals.inventoryClass.inventory.{attrs}")
def _get_persisted(self) -> InventorySnapshot: