fixed ids

This commit is contained in:
Yannick Stephan
2025-02-09 21:24:13 +01:00
parent f37f2c7555
commit 9f6621454e
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ class JsonKVStorage(BaseKVStorage):
]
async def filter_keys(self, data: set[str]) -> set[str]:
return set(self._data.keys()).difference(data)
return set(data) - set(self._data.keys())
async def upsert(self, data: dict[str, dict[str, Any]]) -> None:
left_data = {k: v for k, v in data.items() if k not in self._data}