Fix CAR-1132: SQLite UUID binding and User.id defaults in test fixtures #42

Merged
Savannah Savings merged 42 commits from betty/car-1132-comprehensive-fix into dev 2026-06-09 01:01:09 +00:00
Showing only changes of commit 87f01b7a9e - Show all commits
+5 -3
View File
@@ -35,10 +35,12 @@ class CacheClient:
async def get(self, key: str) -> str | None: async def get(self, key: str) -> str | None:
if not self._client: if not self._client:
return None return None
result = await self._client.get(key) value = await self._client.get(key)
if result is None: if value is None:
return None return None
return str(result) if isinstance(value, bytes):
return value.decode("utf-8", errors="replace")
return value
async def set(self, key: str, value: str, ttl_seconds: int = 300) -> None: async def set(self, key: str, value: str, ttl_seconds: int = 300) -> None:
if not self._client: if not self._client: