From 0ef8a554fd01694c67bfbb40c7e47f06d1fd3f48 Mon Sep 17 00:00:00 2001 From: AuroraZiling <2935876049@qq.com> Date: Sat, 26 Aug 2023 21:32:42 +0800 Subject: [PATCH] =?UTF-8?q?[0.2.3]=20=E4=BF=AE=E5=A4=8D=E7=99=BE=E5=88=86?= =?UTF-8?q?=E6=AF=94=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/Core/GachaReport/Analysis/analysis.py | 4 ++-- src/modules/Views/settings_frame.py | 5 +++-- src/modules/constant.py | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/Core/GachaReport/Analysis/analysis.py b/src/modules/Core/GachaReport/Analysis/analysis.py index 70893af..d49301d 100644 --- a/src/modules/Core/GachaReport/Analysis/analysis.py +++ b/src/modules/Core/GachaReport/Analysis/analysis.py @@ -79,13 +79,13 @@ def get_star_3_amount_to_string(self): def get_star_5_percent_to_string(self): if self.total_amount: - return f"{round(self.star_5_amount / self.total_amount, 2)}%" + return f"{round(self.star_5_amount / self.total_amount * 100, 2)}%" else: return "0.00%" def get_star_4_percent_to_string(self): if self.total_amount: - return f"{round(self.star_4_amount / self.total_amount, 2)}%" + return f"{round(self.star_4_amount / self.total_amount * 100, 2)}%" else: return "0.00%" diff --git a/src/modules/Views/settings_frame.py b/src/modules/Views/settings_frame.py index d7a4cb8..778c21a 100644 --- a/src/modules/Views/settings_frame.py +++ b/src/modules/Views/settings_frame.py @@ -293,13 +293,14 @@ def isNeedUpdateThreadStatusChanged(self, status, content): InfoBar.error("错误", content, InfoBarPosition.TOP_RIGHT, parent=self) elif status == 0: self.newVersion = content - self.isNeedUpdateThreadStateTooltip.setState(True) - self.isNeedUpdateThreadStateTooltip = None w = ComboboxDialog("更新", f"发现新版本: {self.newVersion['tag_name']}\n是否更新?", ["Coding Artifact (国内推荐)", "Github Release (国外推荐)"], self) w.returnSignal.connect(self.__updateReturnSignal) w.exec() + self.isNeedUpdateThreadStateTooltip.setState(True) + self.isNeedUpdateThreadStateTooltip = None + def __updateCheckCardClicked(self): self.updateCheckCard.setEnabled(False) self.isNeedUpdateThread = IsNeedUpdateThread(utils.app_version) diff --git a/src/modules/constant.py b/src/modules/constant.py index e644dcb..08aabca 100644 --- a/src/modules/constant.py +++ b/src/modules/constant.py @@ -1,4 +1,4 @@ -APP_VERSION = "0.2.2" +APP_VERSION = "0.2.3" UI_VERSION = "0.9.0" SRGF_GACHATYPE = {"2": "2", "1": "1", "11": "11", "12": "12"}