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']