merels: Convert incorrectly shared class variable to instance variable.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-11-11 16:15:14 -08:00
parent 188d459ab1
commit e942cceba0

View file

@ -6,9 +6,8 @@ from .libraries import database, game, game_data, mechanics
class Storage: class Storage:
data = {}
def __init__(self, topic_name): def __init__(self, topic_name):
self.data = {}
self.data[topic_name] = '["X", 0, 0, "NNNNNNNNNNNNNNNNNNNNNNNN", "", 0]' self.data[topic_name] = '["X", 0, 0, "NNNNNNNNNNNNNNNNNNNNNNNN", "", 0]'
def put(self, topic_name, value: str): def put(self, topic_name, value: str):