diff options
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |