Skip to content

Commit

Permalink
Fix select, add good message for #162
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Dryabzhinsky committed Jun 15, 2019
1 parent ac426db commit ef2234c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dedupsqlfs/app/actions/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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

0 comments on commit ef2234c

Please sign in to comment.