diff options
author | Kali Kaneko <kali@leap.se> | 2016-09-21 16:06:28 -0400 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2016-11-18 15:55:52 -0300 |
commit | 89c41716c7168561d7023027508d6c2873790e4c (patch) | |
tree | f506b8255bf727c4c72c0beda07d83f85f69fe6b | |
parent | 76fadf5c4c36d285a2e8d981237e79580956aa88 (diff) |
[bug] fix wrong content parsing
-rw-r--r-- | client/src/leap/soledad/client/http_target/fetch.py | 10 |
1 files changed, 2 insertions, 8 deletions
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) |