Skip to content

Commit

Permalink
Update link_types.py
Browse files Browse the repository at this point in the history
  • Loading branch information
r-akemii committed Sep 9, 2024
1 parent 5b6688b commit 5fc46d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aequilibrae/project/network/link_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ def get_by_name(self, link_type: str) -> LinkType:
if lt.link_type.lower() == link_type.lower():
return lt

@property
def fields(self) -> FieldEditor:
"""Returns a FieldEditor class instance to edit the Link_Types table fields and their metadata"""
return FieldEditor(self.project.project_base_path, "link_types")
return FieldEditor(self.project, "link_types")

def all_types(self) -> dict:
"""Returns a dictionary with all LinkType objects available in the model. link_type_id as key"""
Expand Down

0 comments on commit 5fc46d3

Please sign in to comment.