From 1cc49aeb8fbb7d3877c5c8da9b5ccebf3744aca0 Mon Sep 17 00:00:00 2001 From: Zak Nesler Date: Sat, 25 May 2024 16:06:59 -0400 Subject: [PATCH] check content_html --- crates/blend-db/src/repo/entry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/blend-db/src/repo/entry.rs b/crates/blend-db/src/repo/entry.rs index daa024f8..38b2792f 100644 --- a/crates/blend-db/src/repo/entry.rs +++ b/crates/blend-db/src/repo/entry.rs @@ -151,7 +151,7 @@ impl EntryRepo { &self, feed_uuid: &uuid::Uuid, ) -> DbResult> { - sqlx::query_as::<_, model::Entry>("SELECT * FROM entries WHERE feed_uuid = ?1 AND content_scraped_html IS NULL AND scraped_at IS NULL") + sqlx::query_as::<_, model::Entry>("SELECT * FROM entries WHERE feed_uuid = ?1 AND content_html IS NOT NULL AND content_scraped_html IS NULL AND scraped_at IS NULL") .bind(feed_uuid) .fetch_all(&self.db) .await