Skip to content

Commit

Permalink
get diff to return one on diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Apr 11, 2022
1 parent 6477bef commit 2bffe99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/cmd/cre_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def compare_datasets(db1: str, db2: str) -> List[Dict]:
Print their differefnces.
(make db load descriptions etc in memory)
ensure that both graphs have same number of nodes and edges
ensure that both graphs have same number of nodes and edges and both graphs have the same data
"""

database1 = db_connect(path=db1)
Expand Down Expand Up @@ -540,7 +540,9 @@ def edge_differences(edges1, edges2, db2):

ed1 = edge_differences(e1, e2, db2)
ed2 = edge_differences(e2, e1, db1)
return [d1, d2, ed1, ed2]
if len(d1) or len(d2) or len(ed1) or len(ed2):
exit(1)
# return [d1, d2, ed1, ed2] # TODO uncomment when this becomes a library method


def owasp_metadata_to_cre(meta_file: str):
Expand Down

0 comments on commit 2bffe99

Please sign in to comment.