From ef2234c46af362125cf4213ce749bde4481107c2 Mon Sep 17 00:00:00 2001 From: Sergey Dryabzhinsky Date: Sat, 15 Jun 2019 22:43:37 +0300 Subject: [PATCH] Fix select, add good message for #162 --- dedupsqlfs/app/actions/verify.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dedupsqlfs/app/actions/verify.py b/dedupsqlfs/app/actions/verify.py index fcfcbc81..99493259 100644 --- a/dedupsqlfs/app/actions/verify.py +++ b/dedupsqlfs/app/actions/verify.py @@ -33,7 +33,7 @@ def do_verify(options, _fuse): print("Ready to verify %s blocks." % hashCount) cur = tableHash.getCursor(True) - cur.execute("SELECT `id` FROM `%s`" % tableHash.getName()) + cur.execute("SELECT * FROM `%s`" % tableHash.getName()) cnt = equal = 0 lastPrc = "" @@ -72,5 +72,7 @@ def do_verify(options, _fuse): if cnt != equal: print("Data corrupted?! %s block hashes not equals!" % (cnt - equal)) return 1 + else: + print("All data in good hash ;)") return 0