From 8d41f9f3d58a2468f795482ca9fb8ba26393add0 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 28 Jan 2018 20:08:28 -0600 Subject: [PATCH] now update block datasaved stat when saved --- onionr/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()