Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
d97b0627
Commit
d97b0627
authored
Sep 28, 2018
by
Pablo Panero
Browse files
Bug Fix: config variable name should not contain env prefix
parent
1980a259
Changes
1
Hide whitespace changes
Inline
Side-by-side
cern_search_rest_api/modules/cernsearch/utils.py
View file @
d97b0627
...
...
@@ -41,10 +41,10 @@ def cern_search_record_to_index(record):
return
index_name
,
index_name
[
len
(
prefix
)
+
1
:]
current_app
.
logger
.
debug
(
'Index {0}{1} - Doc {2}'
.
format
(
current_app
.
config
[
'
CERN_SEARCH_
INDEX_PREFIX'
],
current_app
.
config
[
'INDEX_PREFIX'
],
current_app
.
config
[
'INDEXER_DEFAULT_INDEX'
],
current_app
.
config
[
'INDEXER_DEFAULT_DOC_TYPE'
])
)
return
(
'{0}{1}'
.
format
(
current_app
.
config
[
'
CERN_SEARCH_
INDEX_PREFIX'
],
return
(
'{0}{1}'
.
format
(
current_app
.
config
[
'INDEX_PREFIX'
],
current_app
.
config
[
'INDEXER_DEFAULT_INDEX'
]),
current_app
.
config
[
'INDEXER_DEFAULT_DOC_TYPE'
])
\ No newline at end of file
Write
Preview
Supports
Markdown
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