Skip to content

Commit a145a50

Browse files
Fix board not updating after 1 error
1 parent 4fa33c7 commit a145a50

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lelonmo/persist_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
save_file = input("Please enter the location of your save file : ")
1717

1818
default_data = dict(
19-
version="00.5.6",
19+
version="00.5.8",
2020
update_url='https://github.com/claj-ndc/LeLonMo/releases/latest',
2121
online=dict(
2222
uuid=str(uuid.uuid4()),

lelonmo/socket_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ def __init__(self, status="Initializing"):
141141
self.invert = False
142142
self.clear()
143143

144-
def update(self, add=None, updatable=None, updatable_2=None, status=None, invert=None):
144+
def update(self, add=None, updatable=None, updatable_2=None, status=None, invert=None, force_refresh=False):
145145

146-
update_screen = False
146+
update_screen = force_refresh
147147
if updatable is not None and self.updatable != updatable:
148148
update_screen = True
149149
self.updatable = updatable
@@ -271,7 +271,7 @@ def main(host="localhost"):
271271
else:
272272
wb.update_letter("Start typing your word")
273273
while not _send_data(input_method(), host).decode("utf-8").startswith("valid%"):
274-
wb.update(updatable_2='Your word is not valid', invert=True)
274+
wb.update(updatable_2='Your word is not valid', invert=True, force_refresh=True)
275275
playerboard.enable = False
276276
wb.clear()
277277
wb.update("Waiting for other players to finish", status=yellow("Waiting ..."))

server/persist_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
save_file = home + ".lelonmo_server_save.json"
88

99
default_data = dict(
10-
version="0.5.6",
11-
client_version="0056",
10+
version="0.5.8",
11+
client_version="0058",
1212
online=dict(
1313
uuid=str(uuid.uuid4()),
1414
name="",

0 commit comments

Comments
 (0)