fix linting error

This commit is contained in:
zrguo
2025-02-11 22:16:35 +08:00
parent a272c7b3f7
commit 18acb4a2b1

View File

@@ -550,7 +550,9 @@ class PGDocStatusStorage(DocStatusStorage):
"workspace": self.db.workspace, "workspace": self.db.workspace,
"id": k, "id": k,
"status": v["status"].value, # Convert Enum to string "status": v["status"].value, # Convert Enum to string
"chunks_count": v.get("chunks_count", -1), # Default to -1 if not provided "chunks_count": v.get(
"chunks_count", -1
), # Default to -1 if not provided
} }
await self.db.execute(sql, _data) await self.db.execute(sql, _data)