From 4f510c5d791c968e56225e39b3e7e8dd1b106974 Mon Sep 17 00:00:00 2001 From: aMahanna Date: Fri, 22 Jul 2022 11:35:14 -0400 Subject: [PATCH] optimize collection validation --- adbnx_adapter/adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adbnx_adapter/adapter.py b/adbnx_adapter/adapter.py index f68fb21e..f9b21e84 100644 --- a/adbnx_adapter/adapter.py +++ b/adbnx_adapter/adapter.py @@ -322,7 +322,7 @@ def networkx_to_arangodb( else self.__cntrl._identify_networkx_node(nx_id, nx_node, adb_v_cols) ) - if col not in adb_v_cols: + if not has_one_vcol and col not in adb_v_cols: msg = f"'{nx_id}' identified as '{col}', which is not in {adb_v_cols}" raise ValueError(msg) @@ -373,7 +373,7 @@ def networkx_to_arangodb( ) ) - if col not in adb_e_cols: + if not has_one_ecol and col not in adb_e_cols: msg = f"{edge_str} identified as '{col}', which is not in {adb_e_cols}" raise ValueError(msg)