summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/search.py
diff options
context:
space:
mode:
authorBruno Rocha <rochacbruno@gmail.com>2020-10-01 17:00:29 -0300
committerbnewbold <bnewbold@robocracy.org>2020-10-05 13:50:02 -0700
commit2944c46c53f4a5b6e8694aa60c5f16070ba5961e (patch)
tree0159a1165d473a78101e19caa289ae9159b040e9 /fatcat_scholar/search.py
parentd3557db18c81da57fd67323068811a1afe86769f (diff)
downloadfatcat-scholar-2944c46c53f4a5b6e8694aa60c5f16070ba5961e.tar.gz
fatcat-scholar-2944c46c53f4a5b6e8694aa60c5f16070ba5961e.zip
Upgrade Dynaconf to 3+
In dynaconf 3+ it is no more recommended to use `from dynaconf import settings` now the recommendation is to create your own instance of the settings object based on Dynaconf class.
Diffstat (limited to 'fatcat_scholar/search.py')
-rw-r--r--fatcat_scholar/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index d29a720..c15ed93 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -8,7 +8,6 @@ from gettext import gettext
from typing import List, Optional, Any
import elasticsearch
-from dynaconf import settings
from elasticsearch_dsl import Search, Q
# pytype: disable=import-error
@@ -16,6 +15,7 @@ from pydantic import BaseModel
# pytype: enable=import-error
+from fatcat_scholar.config import settings
from fatcat_scholar.identifiers import *
# i18n note: the use of gettext below doesn't actually do the translation here,