修复重复提交数据
Showing
1 changed file
with
0 additions
and
1 deletions
| ... | @@ -118,7 +118,6 @@ class DedupService: | ... | @@ -118,7 +118,6 @@ class DedupService: |
| 118 | "insert into lyric_lines (lyric_id, role, line_no, normalized_line, line_hash) values (%s, %s, %s, %s, %s)", | 118 | "insert into lyric_lines (lyric_id, role, line_no, normalized_line, line_hash) values (%s, %s, %s, %s, %s)", |
| 119 | line_rows, | 119 | line_rows, |
| 120 | ) | 120 | ) |
| 121 | conn.commit() | ||
| 122 | 121 | ||
| 123 | def _recall_candidates(self, conn: Any, record: LyricRecord) -> list[LyricRecord]: | 122 | def _recall_candidates(self, conn: Any, record: LyricRecord) -> list[LyricRecord]: |
| 124 | """Three-tier recall: exact_hash → pg_trgm → line_hash.""" | 123 | """Three-tier recall: exact_hash → pg_trgm → line_hash.""" | ... | ... |
-
Please register or sign in to post a comment