Fix linting
This commit is contained in:
parent
38b862e993
commit
7263a1ccf9
1 changed files with 1 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ NEO4J_URI = "bolt://localhost:7687"
|
||||||
NEO4J_USERNAME = "neo4j"
|
NEO4J_USERNAME = "neo4j"
|
||||||
NEO4J_PASSWORD = "your_password"
|
NEO4J_PASSWORD = "your_password"
|
||||||
|
|
||||||
|
|
||||||
def xml_to_json(xml_file):
|
def xml_to_json(xml_file):
|
||||||
try:
|
try:
|
||||||
tree = ET.parse(xml_file)
|
tree = ET.parse(xml_file)
|
||||||
|
|
@ -61,7 +62,6 @@ def xml_to_json(xml_file):
|
||||||
}
|
}
|
||||||
data["edges"].append(edge_data)
|
data["edges"].append(edge_data)
|
||||||
|
|
||||||
|
|
||||||
# Print the number of nodes and edges found
|
# Print the number of nodes and edges found
|
||||||
print(f"Found {len(data['nodes'])} nodes and {len(data['edges'])} edges")
|
print(f"Found {len(data['nodes'])} nodes and {len(data['edges'])} edges")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue