Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
mentha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
rank
mentha
Commits
c231d1e0
Commit
c231d1e0
authored
Dec 30, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mr/develop/dbmw' into 'master'
Mr/develop/dbmw See merge request
!12
parents
f77719bf
ec1db7b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
utils.py
data_sync/utils.py
+1
-1
toutiao.py
qa/models/toutiao.py
+3
-3
No files found.
data_sync/utils.py
View file @
c231d1e0
...
@@ -189,5 +189,5 @@ def get_es_instance():
...
@@ -189,5 +189,5 @@ def get_es_instance():
'sniff_on_connection_fail'
:
False
,
'sniff_on_connection_fail'
:
False
,
}
}
new_hosts
=
settings
.
ES7_HOSTS
new_hosts
=
settings
.
ES7_HOSTS
__es_instance
=
Elasticsearch
(
hosts
=
new_hosts
,
http_auth
=
(
"elastic"
,
"gengmei!@#"
),
**
init_args
)
__es_instance
=
Elasticsearch
(
hosts
=
new_hosts
,
http_auth
=
(
settings
.
HTTP_AUTH_NAME
,
settings
.
HTTP_AUTH_PWD
),
**
init_args
)
return
__es_instance
return
__es_instance
qa/models/toutiao.py
View file @
c231d1e0
...
@@ -65,7 +65,7 @@ def get_es(es_hosts_config=None):
...
@@ -65,7 +65,7 @@ def get_es(es_hosts_config=None):
'sniff_on_connection_fail'
:
False
,
'sniff_on_connection_fail'
:
False
,
}
}
new_hosts
=
settings
.
ES7_HOSTS
if
not
es_hosts_config
else
es_hosts_config
new_hosts
=
settings
.
ES7_HOSTS
if
not
es_hosts_config
else
es_hosts_config
new_es
=
Es
(
hosts
=
new_hosts
,
http_auth
=
(
"elastic"
,
"gengmei!@#"
),
**
init_args
)
new_es
=
Es
(
hosts
=
new_hosts
,
http_auth
=
(
settings
.
HTTP_AUTH_NAME
,
settings
.
HTTP_AUTH_PWD
),
**
init_args
)
return
new_es
return
new_es
...
@@ -75,8 +75,8 @@ def get_service_es(es_hosts_config=None):
...
@@ -75,8 +75,8 @@ def get_service_es(es_hosts_config=None):
'sniff_on_connection_fail'
:
False
,
'sniff_on_connection_fail'
:
False
,
}
}
new_hosts
=
settings
.
ES7_
HOSTS_SERVICE
if
not
es_hosts_config
else
es_hosts_config
new_hosts
=
settings
.
ES7_
SERVICE_HOSTS
if
not
es_hosts_config
else
es_hosts_config
new_es
=
Es
(
hosts
=
new_hosts
,
http_auth
=
(
"elastic"
,
"gengmei!@#"
),
**
init_args
)
new_es
=
Es
(
hosts
=
new_hosts
,
http_auth
=
(
settings
.
HTTP_AUTH_NAME
,
settings
.
HTTP_AUTH_PWD
),
**
init_args
)
return
new_es
return
new_es
...
...
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