From b0039f534c6a986ed47aac1d610ce2071148b199 Mon Sep 17 00:00:00 2001 From: Arinerron Date: Wed, 21 Feb 2018 22:42:02 -0800 Subject: [PATCH] Changes, forgot --- onionr/communicator.py | 2 +- onionr/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/communicator.py b/onionr/communicator.py index cd32d881..e7895f47 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -214,7 +214,7 @@ class OnionrCommunicate: except requests.exceptions.RequestException as e: logger.warn(action + " failed with peer " + peer + ": " + str(e)) retData = False - + if not retData: self.peerData[peer]['failCount'] += 1 else: diff --git a/onionr/core.py b/onionr/core.py index d7ac589c..d79712db 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -383,7 +383,7 @@ class Core: c = conn.cursor() retData = '' if unsaved: - execute = 'SELECT hash FROM hashes where dataSaved != 1;' + execute = 'SELECT hash FROM hashes WHERE dataSaved != 1;' else: execute = 'SELECT hash FROM hashes;' for row in c.execute(execute):