Only get new items where no previous hash error.

This commit is contained in:
Syfaro 2020-01-11 23:58:24 -06:00
parent f02a8db8c0
commit 647bcf9cfe

View File

@ -74,6 +74,7 @@ async fn main() {
post post
WHERE WHERE
hash IS NULL AND hash IS NULL AND
hash_error IS NULL AND
data->>'file_ext' IN ('jpg', 'png') AND data->>'file_ext' IN ('jpg', 'png') AND
data->>'file_url' <> '/images/deleted-preview.png' data->>'file_url' <> '/images/deleted-preview.png'
LIMIT 100", LIMIT 100",