Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,23 @@ def fetch_custom_properties():
return properties


def deduplicate_properties_by_name(properties):
Copy link
Contributor

@Farjaad Farjaad Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we de-dup by alias instead? that's what we do in the frontend of our app

"""
Return properties with duplicate names removed, keeping the first occurrence.
"""
seen_names = set()
deduplicated = []
for prop in properties:
name = prop["name"]
if name not in seen_names:
seen_names.add(name)
deduplicated.append(prop)
return deduplicated


def main():
properties = fetch_custom_properties()
properties = deduplicate_properties_by_name(properties)

for index, property_info in enumerate(properties, 1):
property_name = property_info["name"]
Expand Down