aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 67c0850..7651525 100644
--- a/main.go
+++ b/main.go
@@ -2228,8 +2228,8 @@ func cmdDhash(fs *flag.FlagSet, args []string) error {
hexSHA1 := args[1:]
if len(hexSHA1) == 0 {
var err error
- hexSHA1, err = dbCollectStrings(`
- SELECT sha1 FROM image WHERE dhash IS NULL`)
+ hexSHA1, err = dbCollectStrings(`SELECT sha1 FROM image
+ WHERE thumbw IS NOT NULL AND thumbh IS NOT NULL AND dhash IS NULL`)
if err != nil {
return err
}