From f6a07e69e0a86b70bfa0fe158d162a4a3e55c709 Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Mon, 3 Apr 2023 13:57:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Also=20save=20when=20new=20votin?= =?UTF-8?q?gs=20have=20been=20pushed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- voting/storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/voting/storage.py b/voting/storage.py index f348419..5603f74 100644 --- a/voting/storage.py +++ b/voting/storage.py @@ -61,6 +61,7 @@ class Storage(object): def push(self, voting: Voting) -> None: """Push a voting to the in-memory voting list.""" self.votings.append(voting) + self.__changed = True def pop(self, title: str) -> Voting: """Pop a voting from the in-memory voting list.