fix: remove duplicate 'asr' pre_chunks storage in ASRX handler
Bug: ASRX handler stored pre_chunks as BOTH 'asrx' and 'asr' types. This caused confusion because Rule 1 queries 'asrx' type, but only 'asr' type existed in the database (asrx type was deleted or never stored). Fix: Remove the duplicate 'asr' storage (lines 530-542). ASRX handler now only stores 'asrx' type pre_chunks to workspace SQLite. PostgreSQL pre_chunks are stored by processor.rs with correct 'asrx' type. This ensures Rule 1 can find ASRX pre_chunks correctly.
This commit is contained in:
@@ -527,19 +527,6 @@ impl JobWorker {
|
|||||||
Some(&segment.text),
|
Some(&segment.text),
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
// Also store asr pre_chunks (needed by Rule 1 after checkin)
|
|
||||||
let _ = ws
|
|
||||||
.store_pre_chunk(
|
|
||||||
"asr",
|
|
||||||
"raw",
|
|
||||||
None,
|
|
||||||
None,
|
|
||||||
Some(segment.start_time),
|
|
||||||
Some(segment.end_time),
|
|
||||||
Some(&data.to_string()),
|
|
||||||
Some(&segment.text),
|
|
||||||
)
|
|
||||||
.await;
|
|
||||||
}
|
}
|
||||||
let spk_dets: Vec<crate::core::db::workspace_sqlite::SpeakerDetectionBatchItem> = result.segments.iter().map(|s| {
|
let spk_dets: Vec<crate::core::db::workspace_sqlite::SpeakerDetectionBatchItem> = result.segments.iter().map(|s| {
|
||||||
crate::core::db::workspace_sqlite::SpeakerDetectionBatchItem {
|
crate::core::db::workspace_sqlite::SpeakerDetectionBatchItem {
|
||||||
|
|||||||
Reference in New Issue
Block a user