From e37693df5aac5af0c1ae2dcd6aaede0f421042d1 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Thu, 15 Feb 2018 13:56:14 -0800 Subject: [PATCH] add do_not_archive to class --- warcprox/warcproxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/warcprox/warcproxy.py b/warcprox/warcproxy.py index 5b36300..e55b295 100644 --- a/warcprox/warcproxy.py +++ b/warcprox/warcproxy.py @@ -330,7 +330,7 @@ class RecordedUrl: warcprox_meta=None, content_type=None, custom_type=None, status=None, size=None, client_ip=None, method=None, timestamp=None, host=None, duration=None, referer=None, - payload_digest=None, warc_records=None): + payload_digest=None, warc_records=None, do_not_archive=False): # XXX should test what happens with non-ascii url (when does # url-encoding happen?) if type(url) is not bytes: @@ -370,6 +370,7 @@ class RecordedUrl: self.referer = referer self.payload_digest = payload_digest self.warc_records = warc_records + self.do_not_archive = do_not_archive # inherit from object so that multiple inheritance from this class works # properly in python 2