From 3640d8a799700f7514b5743137e4675ab7dba5d9 Mon Sep 17 00:00:00 2001 From: david-ajax Date: Sun, 14 Sep 2025 23:19:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=97=E6=B3=95=E4=BF=AE=E5=A4=8D=E4=B8=8E?= =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E6=80=A7=E6=89=A9=E5=B1=95=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 1 - plugin/heursync/screens.py | 1 + reactor.py | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 plugin/heursync/screens.py diff --git a/main.py b/main.py index 70030f7..2b86495 100644 --- a/main.py +++ b/main.py @@ -13,7 +13,6 @@ class AppLauncher(App): def on_mount(self) -> None: self.push_screen("dashboard") - if __name__ == "__main__": script_dir = os.path.dirname(os.path.abspath(__file__)) os.chdir(script_dir) diff --git a/plugin/heursync/screens.py b/plugin/heursync/screens.py new file mode 100644 index 0000000..5e2d3a4 --- /dev/null +++ b/plugin/heursync/screens.py @@ -0,0 +1 @@ +# HeurSync 同步器 \ No newline at end of file diff --git a/reactor.py b/reactor.py index da25a27..05ba79e 100644 --- a/reactor.py +++ b/reactor.py @@ -22,7 +22,8 @@ class Glimpse(): self.is_initialized = 1 self.total_num = len(self.elt_u.electrons) for i in self.elt_u.electrons: - self.next_date = max(self.next_date, i['next_date']) + if i['next_date'] != 0: + self.next_date = min(self.next_date, i['next_date']) self.lastest_date = max(self.lastest_date, i['last_date']) if i['is_activated']: self.avg_efactor += i['efactor']