Skip to content

Commit 23fef9b

Browse files
committed
int to str for es_index.
1 parent 4f2b84f commit 23fef9b

File tree

1 file changed

+1
-1
lines changed
  • stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/models

1 file changed

+1
-1
lines changed

stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/models/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def validate_model(cls, data: Any):
121121
data["es_index"] = (
122122
f"ctx._source{data['es_location']}.size() - {-data['index']}"
123123
if data["index"] < 0
124-
else data["index"]
124+
else str(data["index"])
125125
)
126126

127127
data[

0 commit comments

Comments
 (0)