From 2944c46c53f4a5b6e8694aa60c5f16070ba5961e Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Thu, 1 Oct 2020 17:00:29 -0300 Subject: 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. --- fatcat_scholar/work_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/work_pipeline.py') diff --git a/fatcat_scholar/work_pipeline.py b/fatcat_scholar/work_pipeline.py index 720c696..715be1a 100644 --- a/fatcat_scholar/work_pipeline.py +++ b/fatcat_scholar/work_pipeline.py @@ -7,10 +7,10 @@ from typing import List, Dict, Tuple, Optional, Any, Sequence import minio import requests import internetarchive -from dynaconf import settings from fatcat_openapi_client import ReleaseEntity, FileEntity from fatcat_scholar.api_entities import * +from fatcat_scholar.config import settings from fatcat_scholar.djvu import djvu_extract_leaf_texts from fatcat_scholar.sandcrawler import ( SandcrawlerPostgrestClient, -- cgit v1.2.3