Skip to content

Commit 6c8ceb8

Browse files
committed
chore: do not use requests cache
1 parent 54a8745 commit 6c8ceb8

File tree

1 file changed

+5
-5
lines changed
  • ckanext/harvest_basket/harvesters

1 file changed

+5
-5
lines changed

ckanext/harvest_basket/harvesters/csw.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
from requests import utils as request_utils
1111
import owslib.util as ows_util
1212

13-
from requests_cache import install_cache
14-
def ff(resp):
15-
return resp.url.startswith("https://geonetwork.tern.org.au")
16-
install_cache("/tmp/csw-harvester", "sqlite", filter_fn=ff)
13+
# from requests_cache import install_cache
14+
# def ff(resp):
15+
# return resp.url.startswith("https://geonetwork.tern.org.au")
16+
# install_cache("/tmp/csw-harvester", "sqlite", filter_fn=ff)
1717

1818
log = logging.getLogger(__name__)
1919

@@ -177,7 +177,7 @@ def getidentifiers(
177177
break
178178

179179
startposition += page
180-
if startposition >= (matches + 1) or 1:
180+
if startposition >= (matches + 1):
181181
break
182182

183183
kwa["startposition"] = startposition

0 commit comments

Comments
 (0)