diff --git a/onionr/core.py b/onionr/core.py index 96c8a7f7..ced0d72f 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -172,7 +172,7 @@ class Core: conn = sqlite3.connect(self.blockDB) c = conn.cursor() - c.execute("UPDATE hashes set dataSaved=1 where id = '" + dataHash + "';") + c.execute("UPDATE hashes set dataSaved=1 where hash = '" + dataHash + "';") conn.commit() conn.close()