diff options
author | Kali Kaneko <kali@leap.se> | 2015-06-09 12:03:26 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-06-09 12:03:26 -0400 |
commit | 6b0eab6ffa638fb521a524ce281212a796f12b04 (patch) | |
tree | 221f0bd3fa016e103041b17a6f4cbf0c379b48ac | |
parent | c097cfd5ef4fd0aef4ed91da3fcdae1e486f84f7 (diff) |
[style] minor style fixes for correction
after suggestions in the review
-rw-r--r-- | client/src/leap/soledad/client/api.py | 8 | ||||
-rw-r--r-- | client/src/leap/soledad/client/encdecpool.py | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py index fd91ff8b..3cc1f8a5 100644 --- a/client/src/leap/soledad/client/api.py +++ b/client/src/leap/soledad/client/api.py @@ -662,8 +662,8 @@ class Soledad(object): self._last_received_docs = docs = self._dbsyncer.received_docs # Post-Sync Hooks - synced_plugin = soledad_interfaces.ISoledadPostSyncPlugin if docs: + iface = soledad_interfaces.ISoledadPostSyncPlugin suitable_plugins = collect_plugins(synced_plugin) for plugin in suitable_plugins: watched = plugin.watched_doc_types @@ -805,13 +805,15 @@ class Soledad(object): def raw_sqlcipher_query(self, *args, **kw): """ - Run a raw sqlcipher query in the local database, and return the result. + Run a raw sqlcipher query in the local database, and return a deferred + that will be fired with the result. """ return self._dbpool.runQuery(*args, **kw) def raw_sqlcipher_operation(self, *args, **kw): """ - Run a raw sqlcipher operation in the local database, and return None. + Run a raw sqlcipher operation in the local database, and return a + deferred that will be fired with None. """ return self._dbpool.runOperation(*args, **kw) diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py index eff53e28..f81cd2d1 100644 --- a/client/src/leap/soledad/client/encdecpool.py +++ b/client/src/leap/soledad/client/encdecpool.py @@ -579,7 +579,6 @@ class SyncDecrypterPool(SyncEncryptDecryptPool): query += " ORDER BY %s %s" % (order_by, order) return self._runQuery(query) - @defer.inlineCallbacks def _get_insertable_docs(self): """ |