Commit 2a937bd8 authored by albin.thomas's avatar albin.thomas

#Removed print and logger statements.

parent 5be3e234
......@@ -94,25 +94,13 @@ class UTHandler:
try:
cypher_query = create_query_for_batch_details(batch_no=request_data.Batch_No, level=request_data.Batch_Level
, direction=request_data.Traverse.lower().replace(" ", ""))
logger.info("before first query")
print(cypher_query)
result = graph.run(cypher=cypher_query)
# logger.info("after first query")
# logger.info("before second query")
# result2 = graph.evaluate(cypher=cypher_query)
# logger.info("after second query")
response = {}
nodes_list = []
node_ids = []
edges_list = []
relation_mapping_ids = []
result_data = result.data()
logger.info("after all query")
logger.info("before lsting")
# result_data = list(result)
logger.info("after lsting")
for record in result_data:
source_node = record['source']
target_node = record['target']
......@@ -157,7 +145,6 @@ class UTHandler:
# "title": each_node
# }
# )
logger.info("END")
response["edges"] = edges_list
response["nodes"] = nodes_list
return response
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment