Skip to content

Commit 4f29e35

Browse files
committed
Improve INFERRED_LINK_RELS performance #344
1 parent 6002735 commit 4f29e35

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

stac_fastapi/core/stac_fastapi/core/models/links.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# These can be inferred from the item/collection, so they aren't included in the database
1414
# Instead they are dynamically generated when querying the database using the classes defined below
15-
INFERRED_LINK_RELS = ["self", "item", "parent", "collection", "root"]
15+
INFERRED_LINK_RELS = {"self", "item", "parent", "collection", "root"}
1616

1717

1818
def merge_params(url: str, newparams: Dict) -> str:

0 commit comments

Comments
 (0)