diff --git a/fooltrader/bot/actions.py b/fooltrader/bot/actions.py index ef9a46a..6a0e4e7 100644 --- a/fooltrader/bot/actions.py +++ b/fooltrader/bot/actions.py @@ -57,7 +57,7 @@ class WeixinAction(Action): def __init__(self) -> None: self.refresh_token() - schedule.every(10).minutes.do(self.refresh_token()) + schedule.every(10).minutes.do(self.refresh_token) def refresh_token(self): resp = requests.get(self.GET_TOKEN_URL)