Spaces:
Running
Running
Preserve range identity in proofreading locators
Browse files- app/proofread_api.py +3 -0
app/proofread_api.py
CHANGED
|
@@ -286,6 +286,9 @@ async def submit_proofread(body: ProofreadRequest, request: Request):
|
|
| 286 |
body_fields["metadata"] = metadata
|
| 287 |
body_fields["locator"] = {
|
| 288 |
"title": article.get("title"),
|
|
|
|
|
|
|
|
|
|
| 289 |
"page_start": article.get("page_start"),
|
| 290 |
"page_end": article.get("page_end"),
|
| 291 |
}
|
|
|
|
| 286 |
body_fields["metadata"] = metadata
|
| 287 |
body_fields["locator"] = {
|
| 288 |
"title": article.get("title"),
|
| 289 |
+
"authors": article.get("authors") or [],
|
| 290 |
+
"dates": article.get("dates") or [],
|
| 291 |
+
"is_range_date": bool(article.get("is_range_date")),
|
| 292 |
"page_start": article.get("page_start"),
|
| 293 |
"page_end": article.get("page_end"),
|
| 294 |
}
|