Fix status key serialization issue in get_rack_status
This commit is contained in:
parent
30f71c8acf
commit
29e829113b
1 changed files with 2 additions and 1 deletions
|
|
@ -1869,7 +1869,8 @@ def create_document_routes(
|
|||
)
|
||||
|
||||
# Build status summary
|
||||
status_key = doc_status.status.value
|
||||
# Handle both DocStatus enum and string cases for robust deserialization
|
||||
status_key = str(doc_status.status)
|
||||
status_summary[status_key] = status_summary.get(status_key, 0) + 1
|
||||
|
||||
return TrackStatusResponse(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue