Skip to content

Commit

Permalink
feat: add app_name tracking + filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 2, 2024
1 parent 12c2df1 commit 530cb3d
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 229 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
name: Release App

on:
push:
tags:
- "v*"
# push:
# tags:
# - "v*"
workflow_dispatch:

jobs:
Expand Down
3 changes: 2 additions & 1 deletion screenpipe-server/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async fn record_video(

while is_running.load(Ordering::SeqCst) {
if let Some(frame) = video_capture.ocr_frame_queue.lock().await.pop_front() {
match db.insert_frame().await {
match db.insert_frame(&frame.app_name).await {
Ok(frame_id) => {
let text_json = serde_json::to_string(&frame.text_json).unwrap_or_default();
let new_text_json_vs_previous_frame =
Expand All @@ -144,6 +144,7 @@ async fn record_video(
&text_json,
&new_text_json_vs_previous_frame,
&raw_data_output_from_ocr,
&frame.app_name
)
.await
{
Expand Down
Loading

0 comments on commit 530cb3d

Please sign in to comment.