Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
a6a4f11b
Commit
a6a4f11b
authored
Feb 25, 2022
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20220225
parent
d270132f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
apps/utils/neo4j_conn.py
+2
-3
apps/view_atlas/view_es_con.py
+5
-1
No files found.
apps/utils/neo4j_conn.py
View file @
a6a4f11b
...
@@ -4,9 +4,8 @@ from py2neo import Graph
...
@@ -4,9 +4,8 @@ from py2neo import Graph
def
conn_neo4j
():
def
conn_neo4j
():
# graph = Graph("http://localhost:7474", username="neo4j", password="123456") # 本地neo4j
# graph = Graph("http://localhost:7474", username="neo4j", password="123456") # 本地neo4j
graph
=
Graph
(
"http://39.100.39.50:7476"
,
username
=
"neo4j"
,
password
=
"123456"
)
# 50服务器上的neo4j时使用
graph
=
Graph
(
"http://39.100.39.50:7476"
,
username
=
"neo4j"
,
password
=
"123456"
)
# 50服务器上的neo4j时使用
graph1
=
Graph
(
"http://39.100.39.50:7475"
,
username
=
"neo4j"
,
# graph = Graph("http://39.100.39.50:7475", username="neo4j", password="century-english-almanac-havana-golf-9040") # 太原的neo4j,测试是借用
password
=
"century-english-almanac-havana-golf-9040"
)
# 太原的neo4j,测试是借用
return
graph
return
graph
,
graph1
def
neo4j_dict
():
def
neo4j_dict
():
...
...
apps/view_atlas/view_es_con.py
View file @
a6a4f11b
...
@@ -6,8 +6,12 @@ from apps.util import login_required
...
@@ -6,8 +6,12 @@ from apps.util import login_required
from
apps.utils.response_code
import
RET
from
apps.utils.response_code
import
RET
from
apps.utils.neo4j_conn
import
conn_neo4j
from
apps.utils.neo4j_conn
import
conn_neo4j
from
..models
import
Enterprise
from
..models
import
Enterprise
from
py2neo
import
Graph
# graph = conn_neo4j()
graph1
=
Graph
(
"http://39.100.39.50:7475"
,
username
=
"neo4j"
,
password
=
"century-english-almanac-havana-golf-9040"
)
# 太原的neo4j,测试是借用
graph
,
graph1
=
conn_neo4j
()
def
deleteDuplicate
(
li
):
def
deleteDuplicate
(
li
):
...
...
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