Skip to content

Commit

Permalink
release-app fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Feb 24, 2025
1 parent 95ab372 commit aadc9be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion screenpipe-app-tauri/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
version = "0.37.3"
version = "0.37.4"
description = ""
authors = ["you"]
license = ""
Expand Down
8 changes: 4 additions & 4 deletions screenpipe-server/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,16 +1082,16 @@ impl DatabaseManager {
WHERE {audio_match}
AND (?2 IS NULL OR timestamp >= ?2)
AND (?3 IS NULL OR timestamp <= ?3)
AND (?4 IS NULL OR COALESCE(text_length, LENGTH(transcription)) >= ?4)
AND (?5 IS NULL OR COALESCE(text_length, LENGTH(transcription)) <= ?5)
AND (?4 IS NULL OR COALESCE(audio_transcriptions.text_length, LENGTH(audio_transcriptions.transcription)) >= ?4)
AND (?5 IS NULL OR COALESCE(audio_transcriptions.text_length, LENGTH(audio_transcriptions.transcription)) <= ?5)
AND (json_array_length(?6) = 0 OR speaker_id IN (SELECT value FROM json_each(?6)))
UNION ALL
SELECT DISTINCT id FROM {ui_table}
WHERE {ui_match}
AND (?2 IS NULL OR timestamp >= ?2)
AND (?3 IS NULL OR timestamp <= ?3)
AND (?4 IS NULL OR COALESCE(text_length, LENGTH(text_output)) >= ?4)
AND (?5 IS NULL OR COALESCE(text_length, LENGTH(text_output)) <= ?5)
AND (?4 IS NULL OR COALESCE(ui_monitoring.text_length, LENGTH(ui_monitoring.text_output)) >= ?4)
AND (?5 IS NULL OR COALESCE(ui_monitoring.text_length, LENGTH(ui_monitoring.text_output)) <= ?5)
)"#,
ocr_table = if ocr_fts_query.is_empty() {
"ocr_text"
Expand Down

0 comments on commit aadc9be

Please sign in to comment.