Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
knowledge_graph
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sun Long
knowledge_graph
Commits
84745cef
Commit
84745cef
authored
May 07, 2022
by
lyh3024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
Change-Id: Ief17fbeb2dbf464b62f5e7f7fd36a9c2974bc839
parent
d4e15827
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
views.py
block/views.py
+1
-1
views.py
domain/views.py
+1
-2
No files found.
block/views.py
View file @
84745cef
...
...
@@ -173,7 +173,7 @@ def get_block_trade_rank(request):
return
JsonResponse
(
resp
,
safe
=
False
)
param
=
{
'addresses'
:
addresses
}
if
int
(
sort_type
)
!=
2
:
if
sort_type
and
int
(
sort_type
)
!=
2
:
query
=
'match(a:Account)-[out:TRANSFER_OUT]->(t:Transaction) where a.address in $addresses '
\
'return a.address, count(out), sum(t.amount) order by count(out) desc'
else
:
...
...
domain/views.py
View file @
84745cef
...
...
@@ -76,7 +76,6 @@ def get_domain_list(request):
resp
=
tools
.
dec_success_resp
({
"nodes"
:
resp_nodes
,
"relations"
:
resp_relations
})
return
JsonResponse
(
resp
,
safe
=
False
)
print
(
ips
)
param
=
{
"ips"
:
ips
}
query
=
'match (r:RequestIp)-[req:REQUEST]->(d:DomainName)-[lab:LABEL]->(l:Label), (dns:DnsIp)-[par:PARSE]->(d)'
\
'where r.request_ip in $ips return r, d, l, dns, req, lab, par'
...
...
@@ -148,7 +147,7 @@ def get_domain_rank(request):
try
:
label
=
request
.
GET
.
get
(
"label"
)
from_time
=
request
.
GET
.
get
(
'from_time'
)
end_time
=
request
.
GET
.
get
(
'
to
_time'
)
end_time
=
request
.
GET
.
get
(
'
end
_time'
)
if
from_time
and
not
end_time
:
resp
=
tools
.
dec_error_resp
(
"end_time is null"
)
...
...
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