From d11e7dd27cfc85fd917a02e5c78d3a2cd852cc62 Mon Sep 17 00:00:00 2001 From: Rushmore75 Date: Tue, 18 Mar 2025 15:25:40 -0600 Subject: [PATCH] the biggest 1 line improvement ever --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a60f093..aaffb91 100644 --- a/src/main.rs +++ b/src/main.rs @@ -163,7 +163,7 @@ async fn get_uncrawled_links( debug!("Getting uncrawled links"); let mut response = db - .query("SELECT * FROM website WHERE crawled = false AND site CONTAINS type::string($format) LIMIT $count;") + .query("SELECT * FROM website WHERE crawled = false AND site ~ type::string($format) LIMIT $count;") .bind(("format", filter)) .bind(("count", count)) .await