From 2f7dc19efc8b89820cb44ed8b0b9cb225555d446 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sat, 17 Sep 2016 04:25:00 -0300 Subject: [bug] use an empty string to represent tumbstones If a doc doesnt have a content it means it was deleted. Sync stream was unable to represent this state. --- client/src/leap/soledad/client/http_target/fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/leap/soledad/client/http_target/fetch.py b/client/src/leap/soledad/client/http_target/fetch.py index 24d73025..26606e9b 100644 --- a/client/src/leap/soledad/client/http_target/fetch.py +++ b/client/src/leap/soledad/client/http_target/fetch.py @@ -205,7 +205,7 @@ class HTTPDocFetcher(object): line, comma = utils.check_and_strip_comma(data[index]) content, _ = utils.check_and_strip_comma(data[index + 1]) entry = json.loads(line) - entries.append((entry['id'], entry['rev'], content, + entries.append((entry['id'], entry['rev'], content or None, entry['gen'], entry['trans_id'])) except (IndexError, KeyError): raise errors.BrokenSyncStream -- cgit v1.2.3