From 647bcf9cfe389eb71b94f840f445bd02a72a5674 Mon Sep 17 00:00:00 2001 From: Syfaro Date: Sat, 11 Jan 2020 23:58:24 -0600 Subject: [PATCH] Only get new items where no previous hash error. --- src/bin/load_hashes.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/load_hashes.rs b/src/bin/load_hashes.rs index 719eff1..c4df69a 100644 --- a/src/bin/load_hashes.rs +++ b/src/bin/load_hashes.rs @@ -74,6 +74,7 @@ async fn main() { post WHERE hash IS NULL AND + hash_error IS NULL AND data->>'file_ext' IN ('jpg', 'png') AND data->>'file_url' <> '/images/deleted-preview.png' LIMIT 100",