continue support for _singular_ dedup-bucket

This commit is contained in:
Barbara Miller 2019-06-04 14:53:06 -07:00
parent 6ee7ab36a2
commit d133565061

View File

@ -380,6 +380,11 @@ class RecordedUrl:
warcprox_meta['dedup-buckets'] = {}
warcprox_meta['dedup-buckets'][warcprox_meta['captures-bucket']] = 'rw'
del warcprox_meta['captures-bucket']
if 'dedup-bucket' in warcprox_meta:
# more backwards compatibility
warcprox_meta['dedup-buckets'] = {}
warcprox_meta['dedup-buckets'][warcprox_meta['dedup-bucket']] = 'rw'
del warcprox_meta['dedup-bucket']
self.warcprox_meta = warcprox_meta
else:
self.warcprox_meta = {}