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
e1c88a8b
Commit
e1c88a8b
authored
Feb 18, 2022
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8e08bcc1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
apps/models.py
+2
-1
apps/view_360company/view.py
+1
-1
No files found.
apps/models.py
View file @
e1c88a8b
...
@@ -997,7 +997,8 @@ class Lab(db.Model):
...
@@ -997,7 +997,8 @@ class Lab(db.Model):
cate
=
db
.
Column
(
db
.
String
(
255
))
# 创新平台分类
cate
=
db
.
Column
(
db
.
String
(
255
))
# 创新平台分类
cateid
=
db
.
Column
(
db
.
Integer
)
# 创新平台分类id
cateid
=
db
.
Column
(
db
.
Integer
)
# 创新平台分类id
# 工程技术中心1,国际科技合作基地2,企业技术中心3,双创基地4,院士工作站5,质量检测与测量中心6,重点实验室7,会议会展8
# 工程技术中心1,国际科技合作基地2,企业技术中心3,双创基地4,院士工作站5,质量检测与测量中心6,重点实验室7,
# 会议会展8研究院9,研发中心10,联合实验室11,检测中心12
name
=
db
.
Column
(
db
.
String
(
255
))
# 机构现名
name
=
db
.
Column
(
db
.
String
(
255
))
# 机构现名
fax
=
db
.
Column
(
db
.
String
(
255
))
# 传真
fax
=
db
.
Column
(
db
.
String
(
255
))
# 传真
...
...
apps/view_360company/view.py
View file @
e1c88a8b
...
@@ -261,7 +261,7 @@ def search():
...
@@ -261,7 +261,7 @@ def search():
try
:
try
:
es
=
Elasticsearch
([{
'host'
:
'39.100.39.50'
,
'port'
:
9200
}])
es
=
Elasticsearch
([{
'host'
:
'39.100.39.50'
,
'port'
:
9200
}])
data
=
es
.
search
(
index
=
"jincheng_pictext_index_2022021
71347_0e659708
"
,
body
=
body
)
data
=
es
.
search
(
index
=
"jincheng_pictext_index_2022021
81510_eab2ec46
"
,
body
=
body
)
data_list
=
[]
data_list
=
[]
print
(
data_list
)
print
(
data_list
)
size
=
data
[
"hits"
][
'total'
]
size
=
data
[
"hits"
][
'total'
]
...
...
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