🩹 Also save when new votings have been pushed

This commit is contained in:
Brian Wiborg 2023-04-03 13:57:00 +02:00
parent 0f43292863
commit f6a07e69e0
No known key found for this signature in database
GPG Key ID: BE53FA9286B719D6

View File

@ -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.