From c22ea2f1b227085635a6b1641276c650479f2604 Mon Sep 17 00:00:00 2001 From: Matt Diez <92321272+mattdiez-at@users.noreply.github.com> Date: Thu, 29 Aug 2024 11:21:06 -0500 Subject: [PATCH] Switched to simpler branching structure Co-authored-by: Vincent Sarago --- tipg/collections.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tipg/collections.py b/tipg/collections.py index 3e0a1eb..e6529fc 100644 --- a/tipg/collections.py +++ b/tipg/collections.py @@ -951,10 +951,9 @@ async def get_collection_index( # noqa: C901 table_conf = table_confs.get(confid, TableConfig()) # Make sure that any properties set in conf exist in table + columns = table.get("properties", []) if features_settings.sort_columns: - columns = sorted(table.get("properties", []), key=lambda d: d["name"]) - else: - columns = table.get("properties", []) + columns = sorted(columns, key=lambda d: d["name"]) properties_setting = table_conf.properties or [c["name"] for c in columns]