Skip to content

Commit 6e4c1f8

Browse files
author
Phil Varner
committed
remove unnecessary str methods
1 parent 9ddb429 commit 6e4c1f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def stac_to_db(cls, stac_data: TypedDict, base_url: str) -> stac_types.Item:
4343

4444
now = now_to_rfc3339_str()
4545
if "created" not in stac_data["properties"]:
46-
stac_data["properties"]["created"] = str(now)
47-
stac_data["properties"]["updated"] = str(now)
46+
stac_data["properties"]["created"] = now
47+
stac_data["properties"]["updated"] = now
4848
return stac_data
4949

5050
@classmethod

0 commit comments

Comments
 (0)