fix: use ocr live tab and merge stuck room titles

This commit is contained in:
Your Name committed 2026-06-23 02:06:53 +08:00
1 parent e286cd46c8
commit 25f7f9af9e
9 files changed
+582 -16

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
from __future__ import annotations
def test_dashboard_merges_similar_mapping_rows():
from gui.dashboard_app.data import _merge_similar_mapping_rows
rows = [
{
"pos": "3",
"title": "三资堂美妆官方旗舰抖音旗舰店铺回头率超",
"raw_title": "三资堂美妆官方旗舰抖音旗舰店铺回头率超7",
"reserved": "-",
"has_fudai": "-",
"value": "-",
"countdown": "-",
"participants": "-",
"copies": "-",
"button": "-",
"task": "-",
"content": "-",
"updated": "-",
},
{
"pos": "4",
"title": "三资堂美妆官方旗舰抖音旗舰美妆达人好店",
"raw_title": "三资堂美妆官方旗舰抖音旗舰美妆达人好店",
"reserved": "-",
"has_fudai": "-",
"value": "-",
"countdown": "-",
"participants": "-",
"copies": "-",
"button": "-",
"task": "-",
"content": "-",
"updated": "-",
},
]
merged = _merge_similar_mapping_rows(rows)
assert len(merged) == 1
assert merged[0]["pos"] == "3"