mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
continue support for _singular_ dedup-bucket
This commit is contained in:
parent
6ee7ab36a2
commit
d133565061
@ -380,6 +380,11 @@ class RecordedUrl:
|
|||||||
warcprox_meta['dedup-buckets'] = {}
|
warcprox_meta['dedup-buckets'] = {}
|
||||||
warcprox_meta['dedup-buckets'][warcprox_meta['captures-bucket']] = 'rw'
|
warcprox_meta['dedup-buckets'][warcprox_meta['captures-bucket']] = 'rw'
|
||||||
del warcprox_meta['captures-bucket']
|
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
|
self.warcprox_meta = warcprox_meta
|
||||||
else:
|
else:
|
||||||
self.warcprox_meta = {}
|
self.warcprox_meta = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user