From 423142af3f75591bfb76342d0d584bc97942a4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 26 May 2021 19:16:20 +0200 Subject: [PATCH] fix pickle persistence --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index fdea4cb..94c9044 100644 --- a/bot.py +++ b/bot.py @@ -21,8 +21,9 @@ STATE_PATH = os.getenv("STATE_PATH", "state.pickle") class State: - notified = [] - notified_soon = [] + def __init__(self) -> None: + self.notified = [] + self.notified_soon = [] def process_event(event, template):