Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: broken queries

Louis Beaumont0329e69810f6
diff --git a/screenpipe-server/src/db.rs b/screenpipe-server/src/db.rs
index a77ea2551..46d04c19e 100644
--- a/screenpipe-server/src/db.rs
+++ b/screenpipe-server/src/db.rs
@@ -463,7 +463,7 @@ impl DatabaseManager {
if content_type == ContentType::All || content_type == ContentType::OCR {
let ocr_count: (i64,) =
- sqlx::query_as("SELECT COUNT(*) FROM ocr_text WHERE ocr_text MATCH ?1")
+ sqlx::query_as("SELECT COUNT(*) FROM ocr_text WHERE text LIKE '%' || ?1 || '%'")
.bind(query)
.fetch_one(&self.pool)
.await?;