1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

Default closest_limit to 100 instead of 10 (#606)

At UKWA we're hitting cases where crawl variation means we have e.g. a lot of redirect records and in these cases the 10 record limit is too low.  I can't see any way of configuring this value, so I'm proposing the default is raised.
This commit is contained in:
Andy Jackson 2021-01-26 21:54:40 +00:00 committed by GitHub
parent 07fb6bbf1d
commit 841c02c123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ class FileIndexSource(BaseIndexSource):
class RemoteIndexSource(BaseIndexSource):
CDX_MATCH_RX = re.compile('^cdxj?\+(?P<url>https?\:.*)')
def __init__(self, api_url, replay_url, url_field='load_url', closest_limit=10):
def __init__(self, api_url, replay_url, url_field='load_url', closest_limit=100):
self.api_url = api_url
self.replay_url = replay_url
self.url_field = url_field