Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyvpet
Project
Project
Details
Activity
Releases
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
haoyanbin
pyvpet
Commits
afd9953a
Commit
afd9953a
authored
Jul 18, 2025
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Audio
parent
b1c6043f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1086 additions
and
193 deletions
+1086
-193
__init__.py
app/__init__.py
+4
-3
importdata.py
app/controller/importdata.py
+883
-7
search.py
app/controller/search.py
+171
-171
base.py
app/model/base.py
+27
-11
start.py
start.py
+1
-1
No files found.
app/__init__.py
View file @
afd9953a
...
...
@@ -11,10 +11,11 @@ def create_app(test_config=None):
DATABASE
=
os
.
path
.
join
(
app
.
instance_path
,
'apps.sqlite'
),
)
from
app.controller
import
search
,
importdata
,
neodata
,
auth
app
.
register_blueprint
(
search
.
bp
)
# from app.controller import search,importdata,neodata,auth
from
app.controller
import
importdata
,
auth
# app.register_blueprint(search.bp)
app
.
register_blueprint
(
importdata
.
bp
)
app
.
register_blueprint
(
neodata
.
bp
)
#
app.register_blueprint(neodata.bp)
app
.
register_blueprint
(
auth
.
bp
)
if
test_config
is
None
:
...
...
app/controller/importdata.py
View file @
afd9953a
This diff is collapsed.
Click to expand it.
app/controller/search.py
View file @
afd9953a
This diff is collapsed.
Click to expand it.
app/model/base.py
View file @
afd9953a
...
...
@@ -10,24 +10,40 @@ dbconn = MYSQL(
dbcharset
=
'utf8'
)
# dbconn2 = MYSQL(
# dbhost='rm-2zenl1z0v6209a4jrbo.mysql.rds.aliyuncs.com',
# dbport=3306,
# dbuser='root_medical',
# dbpwd='dbc_medical888888!',
# dbname='dbc_medical_record',
# dbcharset='utf8'
# )
dbconn2
=
MYSQL
(
dbhost
=
'
rm-2zenl1z0v6209a4jrbo.mysql.rds.aliyuncs.com
'
,
dbport
=
330
6
,
dbuser
=
'root
_medical
'
,
dbpwd
=
'
dbc_medical888888!
'
,
dbname
=
'
dbc_medical_record
'
,
dbhost
=
'
39.96.85.45
'
,
dbport
=
330
7
,
dbuser
=
'root'
,
dbpwd
=
'
abc123456
'
,
dbname
=
'
Illness
'
,
dbcharset
=
'utf8'
)
# dbconn3 = MYSQL(
# dbhost='rm-2zepcf8kag0aol0q48o.mysql.rds.aliyuncs.com',
# dbport=3306,
# dbuser='dbc_saas',
# dbpwd='dbc_saas888888',
# dbname='medical_platform',
# dbcharset='utf8'
# )
dbconn3
=
MYSQL
(
dbhost
=
'
rm-2zepcf8kag0aol0q48o.mysql.rds.aliyuncs.com
'
,
dbport
=
330
6
,
dbuser
=
'
dbc_saas
'
,
dbpwd
=
'
dbc_saas888888
'
,
dbname
=
'
medical_platform
'
,
dbhost
=
'
39.96.85.45
'
,
dbport
=
330
7
,
dbuser
=
'
root
'
,
dbpwd
=
'
abc123456
'
,
dbname
=
'
Illness
'
,
dbcharset
=
'utf8'
)
# graph = Graph("", auth=("neo4j", "11111111"))
# graph = Graph("bolt://gds-2zeyv40mi12s6mjc149870pub.graphdb.rds.aliyuncs.com:3734", auth=("dbc_tair", "dbc_tair888888"))
# print(graph)
...
...
start.py
View file @
afd9953a
...
...
@@ -4,4 +4,4 @@ app = create_app()
if
__name__
==
'__main__'
:
# app.run(host='0.0.0.0', port=5080, debug=True)
app
.
run
(
port
=
508
0
,
debug
=
True
)
app
.
run
(
port
=
800
0
,
debug
=
True
)
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