From 6345d9e18e126b85c7e3f59e1b390084320bec8c Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Tue, 26 Dec 2023 06:41:41 +0100 Subject: More meaningful dhash command --- main.go | 4 ++-- 1 file 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 } -- cgit v1.2.3-70-g09d2