Fix linting
This commit is contained in:
@@ -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")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user