Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
马一丁
2025-12-19 09:57:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
673660648c9fedc74297a56797b82d6e33ed2fc0
67366064
1 parent
cb6b8f39
Query result endpoint references non-existent attributes
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
26 deletions
app.py
app.py
View file @
6736606
...
...
@@ -1503,32 +1503,12 @@ def query_graph():
return
jsonify
({
'success'
:
True
,
'result'
:
{
'matched_nodes'
:
[
{
'id'
:
n
.
id
,
'type'
:
n
.
type
,
'label'
:
n
.
label
,
'properties'
:
n
.
properties
}
for
n
in
result
.
matched_nodes
],
'related_edges'
:
[
{
'source'
:
e
.
source
,
'target'
:
e
.
target
,
'relation'
:
e
.
relation
}
for
e
in
result
.
related_edges
],
'expanded_nodes'
:
[
{
'id'
:
n
.
id
,
'type'
:
n
.
type
,
'label'
:
n
.
label
,
'properties'
:
n
.
properties
}
for
n
in
result
.
expanded_nodes
]
'matched_sections'
:
result
.
matched_sections
,
'matched_queries'
:
result
.
matched_queries
,
'matched_sources'
:
result
.
matched_sources
,
'total_nodes'
:
result
.
total_nodes
,
'query_params'
:
result
.
query_params
,
'summary'
:
result
.
get_summary
()
}
})
...
...
Please
register
or
login
to post a comment