Skip to content

Commit

Permalink
Showing only lineage names instead of all objects. Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shettland committed Dec 20, 2024
1 parent 6f102f3 commit 2a3eb44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/utils/lineage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
def get_lineages_list():
"""Function gets the lineage names and return then in an ordered list"""
latest_schema = core.utils.schema.get_default_schema()
lineage_name_field_id = core.models.LineageFields.objects.filter(schemaID=latest_schema).first()
lineage_name_field_id = core.models.LineageFields.objects.filter(
schemaID=latest_schema
).first()
return list(
core.models.LineageValues.objects.all()
.filter(lineage_fieldID=lineage_name_field_id)
Expand Down

0 comments on commit 2a3eb44

Please sign in to comment.