diff --git a/readinglistmanager/datamanager/cvManager.py b/readinglistmanager/datamanager/cvManager.py index da683df..2317eff 100644 --- a/readinglistmanager/datamanager/cvManager.py +++ b/readinglistmanager/datamanager/cvManager.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +from datetime import timedelta from html import unescape from readinglistmanager import config,filemanager,utilities #from readinglistmanager.datamanager import dataManager @@ -8,9 +9,9 @@ from readinglistmanager.model.date import PublicationDate from readinglistmanager.datamanager.datasource import ComicInformationSource,ListSourceType import simyan.schemas.volume, simyan.schemas.issue, simyan.schemas.story_arc, simyan.comicvine -from simyan.sqlite_cache import SQLiteCache +from simyan.cache import SQLiteCache -CACHE_RETENTION_TIME = 60 #days +CACHE_RETENTION_TIME = timedelta(days=60) MAX_RESULTS = 100 if config.CV.cache_searches: diff --git a/requirements.txt b/requirements.txt index 88a179c..563f57c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -simyan>=1.2.0 +simyan >= 2.0.0 mokkari>=2.6.0 jsonschema >=4.21.1 \ No newline at end of file