fixed return

This commit is contained in:
Yannick Stephan
2025-02-19 22:22:41 +01:00
parent 8958046b74
commit 9277fe8c29
12 changed files with 60 additions and 31 deletions

View File

@@ -43,6 +43,9 @@ class JsonKVStorage(BaseKVStorage):
return set(keys) - set(self._data.keys())
async def upsert(self, data: dict[str, dict[str, Any]]) -> None:
logger.info(f"Inserting {len(data)} to {self.namespace}")
if not data:
return
left_data = {k: v for k, v in data.items() if k not in self._data}
self._data.update(left_data)