From 617f80f6879780ec72667fc5ace558ac7e661718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E7=93=9C?= <52106595+a-fruity-melon@users.noreply.github.com> Date: Wed, 21 Apr 2021 18:36:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20rate.py=20variable=20scop?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rate.py b/rate.py index 331d5d7..478eba9 100644 --- a/rate.py +++ b/rate.py @@ -44,6 +44,7 @@ async def refresher(context): if time.time() - last_init > 24 * 60 * 60: # we'd better do this to prevent ruining the log file with massive fail logs # as this `refresher` would be called frequently + global last_init last_init = time.time() try: init()