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
119e1bfc
Commit
119e1bfc
authored
Mar 28, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230328
parent
b6cfee50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
apps/utils/neo4j_conn.py
+1
-4
apps/view_atlas/view.py
+2
-2
No files found.
apps/utils/neo4j_conn.py
View file @
119e1bfc
...
...
@@ -2,10 +2,7 @@ from py2neo import Graph
def
conn_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:7475", username="neo4j", password="century-english-almanac-havana-golf-9040") # 太原的neo4j,测试是借用
# graph = Graph("http://39.100.39.50:7475", username="neo4j", password="123456") # 太原的neo4j,测试是借用
graph
=
Graph
(
"http://39.100.39.50:7476"
,
username
=
"neo4j"
,
password
=
"123456"
)
# 晋城neo4j
return
graph
...
...
apps/view_atlas/view.py
View file @
119e1bfc
...
...
@@ -1197,8 +1197,8 @@ def industry_enterprise():
Company
.
product_all
.
like
(
"
%
{}
%
"
.
format
(
product
))
)
.
all
()
company1
+=
company2
size
=
len
(
set
(
company1
)
)
company1
=
set
(
company1
)
size
=
len
(
company1
)
company1
=
sorted
(
company1
,
key
=
lambda
x
:
x
.
hots
,
reverse
=
True
)
companys
=
company1
[(
page
-
1
)
*
perpage
:
page
*
perpage
]
...
...
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