Skip to content

Commit

Permalink
fix: a variable issue in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
newgene committed Apr 12, 2023
1 parent 5c6d6dc commit 8cd70fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions biothings/web/settings/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def validate(self, config):
if config.ES_INDICES is default.ES_INDICES:
config.ES_INDICES = {}
else: # combine with the user provided value
# _doc_type can be None if not provided, in this case, ES_INDEX value will be
# set to "None" key in ES_INDICES as the default index used in the handlers
_doc_type = getattr(config, "ES_DOC_TYPE", None) or None
config.ES_INDICES = dict(config.ES_INDICES)
# _doc_type can be None if not provided, in this case, ES_INDEX value will be
# set to "None" key in ES_INDICES as the default index used in the handlers
_doc_type = getattr(config, "ES_DOC_TYPE", None) or None
config.ES_INDICES[_doc_type] = config.ES_INDEX

ERROR = "UNSUPPORTED SETTINGS."
Expand Down

0 comments on commit 8cd70fa

Please sign in to comment.