From 6d1e6a9a8a0a70c43f9cd23c4541cd08618d3d11 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 21 Sep 2016 16:06:28 -0400 Subject: [bug] fix wrong content parsing --- client/src/leap/soledad/client/http_target/fetch.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'client/src') diff --git a/client/src/leap/soledad/client/http_target/fetch.py b/client/src/leap/soledad/client/http_target/fetch.py index 2e54ca70..a0c35063 100644 --- a/client/src/leap/soledad/client/http_target/fetch.py +++ b/client/src/leap/soledad/client/http_target/fetch.py @@ -49,9 +49,6 @@ class HTTPDocFetcher(object): @defer.inlineCallbacks def _receive_docs(self, last_known_generation, last_known_trans_id, ensure_callback, sync_id): - - print 'receiving.....', sync_id - new_generation = last_known_generation new_transaction_id = last_known_trans_id @@ -104,16 +101,13 @@ class HTTPDocFetcher(object): :param total: The total number of operations. :type total: int """ - # decrypt incoming document and insert into local database # If arriving content was symmetrically encrypted, we decrypt + # decrypt incoming document and insert into local database doc = SoledadDocument(doc_info['id'], doc_info['rev'], content) - print "GOT.....", doc - - payload = doc['raw'] + payload = doc.content['raw'] if is_symmetrically_encrypted(payload): - print "SHOULD DECRYPT!!!!", content decrypted = yield self._crypto.decrypt_doc(doc) doc.set_json(decrypted) -- cgit v1.2.3