Skip to content

Commit

Permalink
Switched to simpler branching structure
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Sarago <[email protected]>
  • Loading branch information
mattdiez-at and vincentsarago authored Aug 29, 2024
1 parent a7dbc20 commit c22ea2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tipg/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit c22ea2f

Please sign in to comment.