fix linting error
This commit is contained in:
parent
a272c7b3f7
commit
18acb4a2b1
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue