fix: 修复代码格式问题,提升可读性
This commit is contained in:
1 parent
71d2f218cf
commit
362b7c841c
6 files changed
+126
-35
No files matched your search
@@ -284,8 +284,15 @@ def test_reservation_backtrack():
|
||||
# 根据当前位置返回对应的标题
|
||||
pos = analyser.room_pos
|
||||
if pos in analyser._room_pos_to_title_map:
|
||||
title, title_raw = analyser._room_pos_to_title_map[pos]
|
||||
return title, title_raw
|
||||
room_info = analyser._room_pos_to_title_map[pos]
|
||||
if isinstance(room_info, dict):
|
||||
return room_info.get("title", "未知直播间"), room_info.get(
|
||||
"title_raw", "未知直播间"
|
||||
)
|
||||
else:
|
||||
# 兼容旧格式
|
||||
title, title_raw = room_info
|
||||
return title, title_raw
|
||||
return "未知直播间", "未知直播间"
|
||||
|
||||
# 替换实际函数
|
||||
|
||||
Reference in new issue
Block a user