mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 16:50:09 +00:00
🐛 fix: rate.py variable scope
This commit is contained in:
parent
e8153dea62
commit
617f80f687
1
rate.py
1
rate.py
@ -44,6 +44,7 @@ async def refresher(context):
|
|||||||
if time.time() - last_init > 24 * 60 * 60:
|
if time.time() - last_init > 24 * 60 * 60:
|
||||||
# we'd better do this to prevent ruining the log file with massive fail logs
|
# we'd better do this to prevent ruining the log file with massive fail logs
|
||||||
# as this `refresher` would be called frequently
|
# as this `refresher` would be called frequently
|
||||||
|
global last_init
|
||||||
last_init = time.time()
|
last_init = time.time()
|
||||||
try:
|
try:
|
||||||
init()
|
init()
|
||||||
|
Loading…
Reference in New Issue
Block a user