From 64023bd306c8272bba9f7905bcbe201faa1038d3 Mon Sep 17 00:00:00 2001 From: foolcage <5533061@qq.com> Date: Mon, 9 Jul 2018 15:17:54 +0800 Subject: [PATCH] fix --- fooltrader/bot/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)