feat: 优化代码格式,提升可读性和一致性
This commit is contained in:
1 parent
3488624b8f
commit
ca3b2f6fea
4 files changed
+62
-33
No files matched your search
+16
-11
@@ -2759,9 +2759,7 @@ def main():
|
||||
notebook.add(win_record_tab, text="中奖记录")
|
||||
# 将运行时映射表加入右侧 Notebook
|
||||
mapping_tab = ttk.Frame(notebook)
|
||||
map_box = ttk.LabelFrame(
|
||||
mapping_tab, text="运行时映射表(包含福袋详情)"
|
||||
)
|
||||
map_box = ttk.LabelFrame(mapping_tab, text="运行时映射表(包含福袋详情)")
|
||||
map_box.pack(fill=X, padx=10, pady=(10, 10))
|
||||
|
||||
map_ctrl = ttk.Frame(map_box)
|
||||
@@ -2965,18 +2963,21 @@ def main():
|
||||
countdown_text = "-"
|
||||
if isinstance(fudai_detail, dict):
|
||||
task_list = (
|
||||
str(fudai_detail.get("task_list") or "")
|
||||
.strip()
|
||||
str(
|
||||
fudai_detail.get("task_list") or ""
|
||||
).strip()
|
||||
or "-"
|
||||
)
|
||||
button_text = (
|
||||
str(fudai_detail.get("button_text") or "")
|
||||
.strip()
|
||||
str(
|
||||
fudai_detail.get("button_text") or ""
|
||||
).strip()
|
||||
or "-"
|
||||
)
|
||||
fudai_time = (
|
||||
str(fudai_detail.get("time_text") or "")
|
||||
.strip()
|
||||
str(
|
||||
fudai_detail.get("time_text") or ""
|
||||
).strip()
|
||||
or "-"
|
||||
)
|
||||
fudai_value = (
|
||||
@@ -2994,8 +2995,12 @@ def main():
|
||||
if fudai_detail.get("copies")
|
||||
else "-"
|
||||
)
|
||||
mm = str(fudai_detail.get("countdown_mm") or "").strip()
|
||||
ss = str(fudai_detail.get("countdown_ss") or "").strip()
|
||||
mm = str(
|
||||
fudai_detail.get("countdown_mm") or ""
|
||||
).strip()
|
||||
ss = str(
|
||||
fudai_detail.get("countdown_ss") or ""
|
||||
).strip()
|
||||
if fudai_time and fudai_time != "-":
|
||||
countdown_text = fudai_time
|
||||
elif mm or ss:
|
||||
|
||||
Reference in new issue
Block a user