Skip to content

Commit

Permalink
run black on settings
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Jan 20, 2022
1 parent 9c8d094 commit c37e2b5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions bothub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,14 @@
REPOSITORY_RESTRICT_ACCESS_NLP_LOGS = env.list("REPOSITORY_RESTRICT_ACCESS_NLP_LOGS")

# Limit of characters for the knowledge base description
REPOSITORY_KNOWLEDGE_BASE_DESCRIPTION_LIMIT = env.list("REPOSITORY_KNOWLEDGE_BASE_DESCRIPTION_LIMIT", default=450)
REPOSITORY_KNOWLEDGE_BASE_DESCRIPTION_LIMIT = env.list(
"REPOSITORY_KNOWLEDGE_BASE_DESCRIPTION_LIMIT", default=450
)

# Limit of words for the example sentence
REPOSITORY_EXAMPLE_TEXT_WORDS_LIMIT = env.list("REPOSITORY_EXAMPLE_TEXT_WORDS_LIMIT", default=200)
REPOSITORY_EXAMPLE_TEXT_WORDS_LIMIT = env.list(
"REPOSITORY_EXAMPLE_TEXT_WORDS_LIMIT", default=200
)


# django_redis
Expand Down Expand Up @@ -524,9 +528,7 @@
"default": {"hosts": env.str("ELASTICSEARCH_DSL", default="es:9200")}
}

USE_ELASTICSEARCH = env.bool(
"USE_ELASTICSEARCH", default=True
)
USE_ELASTICSEARCH = env.bool("USE_ELASTICSEARCH", default=True)

ELASTICSEARCH_DSL_INDEX_SETTINGS = {
"number_of_shards": env.int("ELASTICSEARCH_NUMBER_OF_SHARDS", default=1),
Expand All @@ -541,7 +543,8 @@
"ELASTICSEARCH_REPOSITORYQANLPLOG_INDEX", default="ai_repositoryqanlplog"
),
"bothub.common.documents.repositorybasicexample": env.str(
"ELASTICSEARCH_REPOSITORYBASICEXAMPLE_INDEX", default="ai_repositorybasicexample"
"ELASTICSEARCH_REPOSITORYBASICEXAMPLE_INDEX",
default="ai_repositorybasicexample",
),
}

Expand Down

0 comments on commit c37e2b5

Please sign in to comment.