chore: 修改版本文本
This commit is contained in:
@@ -80,7 +80,7 @@ class DashboardScreen(Screen):
|
|||||||
from heurams.services.attic import Attic
|
from heurams.services.attic import Attic
|
||||||
|
|
||||||
a = Attic("ana", {"totaltime": 0, "openpuzzles": 0, "puzzles_err": 0})
|
a = Attic("ana", {"totaltime": 0, "openpuzzles": 0, "puzzles_err": 0})
|
||||||
yield Label(f"版本 {version.ver} {version.stage.capitalize()}") # 版本信息
|
yield Label(f"版本 {version.ver}-{version.stage}") # 版本信息
|
||||||
yield Label(
|
yield Label(
|
||||||
f"在 {round(a.data['totaltime'], 2)} 秒内处理了 {a.data['openpuzzles']} 个谜题, 正确率{'无法求解' if not a.data['openpuzzles'] else ' ' + str(round(100 * (1 - a.data['puzzles_err']/a.data['openpuzzles']), 2)) + '%'}, 平均速度{'无法求解' if not a.data['totaltime'] else ' ' + str(round(a.data['openpuzzles']/a.data['totaltime'], 2)) + ' 个每秒'}",
|
f"在 {round(a.data['totaltime'], 2)} 秒内处理了 {a.data['openpuzzles']} 个谜题, 正确率{'无法求解' if not a.data['openpuzzles'] else ' ' + str(round(100 * (1 - a.data['puzzles_err']/a.data['openpuzzles']), 2)) + '%'}, 平均速度{'无法求解' if not a.data['totaltime'] else ' ' + str(round(a.data['openpuzzles']/a.data['totaltime'], 2)) + ' 个每秒'}",
|
||||||
id="analysis",
|
id="analysis",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from heurams.services.logger import get_logger
|
|||||||
logger = get_logger(__name__)
|
logger = get_logger(__name__)
|
||||||
|
|
||||||
ver = "0.5.0"
|
ver = "0.5.0"
|
||||||
stage = "prototype"
|
stage = "rc.1"
|
||||||
codename = "fulcrum"
|
codename = "fulcrum"
|
||||||
codename_cn = "支点"
|
codename_cn = "支点"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user