Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
Batch-360
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
albin.thomas
Batch-360
Commits
2a937bd8
Commit
2a937bd8
authored
Jun 07, 2023
by
albin.thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#Removed print and logger statements.
parent
5be3e234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
scripts/core/handlers/ut_handler.py
scripts/core/handlers/ut_handler.py
+0
-13
No files found.
scripts/core/handlers/ut_handler.py
View file @
2a937bd8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment