diff --git a/defs/utils.py b/defs/utils.py index 4998315..dc9e44b 100644 --- a/defs/utils.py +++ b/defs/utils.py @@ -13,7 +13,7 @@ class Vtuber: self.face: str = data["face"] self.follower: int = data["follower"] self.liveStatus: bool = data["liveStatus"] - self.online: Optional[int, bool] = data["online"] + self.online: int = data["online"] if data["online"] else 0 self.notice: str = data["notice"].replace(r"\n", "\n") self.time: int = data["time"] self.timeStr: str = strf_time(self.time) diff --git a/plugins/track.py b/plugins/track.py index 16591d1..f45405d 100644 --- a/plugins/track.py +++ b/plugins/track.py @@ -60,7 +60,7 @@ async def run_every_10_minute(): await sleep(uniform(0.5, 2.0)) -@scheduler.scheduled_job("cron", hour="*/12", id="0") +@scheduler.scheduled_job("cron", hour="*/12", minute="0", id="0") async def run_every_12_hour(): await update_info()