Skip to content

Commit

Permalink
Remove NeomodelPath reference
Browse files Browse the repository at this point in the history
  • Loading branch information
john681611 committed Oct 5, 2023
1 parent 6adc7b2 commit 51ea175
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/database/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
RelationshipTo,
ArrayProperty,
StructuredRel,
NeomodelPath,
db,
)
from sqlalchemy.orm import aliased
Expand Down Expand Up @@ -470,7 +469,7 @@ def format_segment(seg: StructuredRel, nodes):
"relationship": relation_map[type(seg)],
}

def format_path_record(rec: NeomodelPath):
def format_path_record(rec):
return {
"start": NEO_DB.parse_node(rec.start_node),
"end": NEO_DB.parse_node(rec.end_node),
Expand Down

0 comments on commit 51ea175

Please sign in to comment.