From 51ea175a1526cd7b738cec1408d5a0bdd4c60338 Mon Sep 17 00:00:00 2001 From: john681611 Date: Thu, 5 Oct 2023 10:38:34 +0100 Subject: [PATCH] Remove NeomodelPath reference --- application/database/db.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/database/db.py b/application/database/db.py index 0ca2d0aca..f9ca75d8b 100644 --- a/application/database/db.py +++ b/application/database/db.py @@ -7,7 +7,6 @@ RelationshipTo, ArrayProperty, StructuredRel, - NeomodelPath, db, ) from sqlalchemy.orm import aliased @@ -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),