the biggest 1 line improvement ever

This commit is contained in:
Rushmore75 2025-03-18 15:25:40 -06:00
parent f2a3e836a0
commit d11e7dd27c

View File

@ -163,7 +163,7 @@ async fn get_uncrawled_links(
debug!("Getting uncrawled links"); debug!("Getting uncrawled links");
let mut response = db 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(("format", filter))
.bind(("count", count)) .bind(("count", count))
.await .await