From 0547d38d69edfc10a5b186bcc3407a27f9c2861d Mon Sep 17 00:00:00 2001 From: mirai Date: Fri, 2 Dec 2022 08:24:30 +0300 Subject: [PATCH] Updated client/client.py --- client/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client.py b/client/client.py index fbd8245..037e6c2 100644 --- a/client/client.py +++ b/client/client.py @@ -64,10 +64,10 @@ class Client: time.sleep(0.05) #r = requests.post(self.info_url) ws.send(payload="") - r = ws.recv() - if last_try == r.json(): + r = ws.recv() + if last_try == eval(r): continue - last_try = r.json() + last_try = eval(r) # For windows clear command its cls # For linux clear command its clear if OS == "Linux":