mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
Merge branch 'trough-dedup' into qa
* trough-dedup: trough dedup - handle case of no warc records written
This commit is contained in:
commit
8c57e1e007
@ -295,8 +295,7 @@ class TroughDedupDb(object):
|
|||||||
if (records and records[0].type == b'response'
|
if (records and records[0].type == b'response'
|
||||||
and recorded_url.response_recorder.payload_size() > 0):
|
and recorded_url.response_recorder.payload_size() > 0):
|
||||||
digest_key = warcprox.digest_str(
|
digest_key = warcprox.digest_str(
|
||||||
recorded_url.payload_digest,
|
recorded_url.payload_digest, self.options.base32)
|
||||||
self.options.base32)
|
|
||||||
if recorded_url.warcprox_meta and 'captures-bucket' in recorded_url.warcprox_meta:
|
if recorded_url.warcprox_meta and 'captures-bucket' in recorded_url.warcprox_meta:
|
||||||
self.save(
|
self.save(
|
||||||
digest_key, records[0],
|
digest_key, records[0],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user