Merge remote-tracking branch 'origin/master'

This commit is contained in:
Kai Vogelgesang 2020-04-17 01:00:18 +02:00
commit 3c852bcbd5
3 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}}

View File

@ -0,0 +1 @@
{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}}

View File

@ -43,7 +43,7 @@ class Model:
# TODO: compute state, send to client # TODO: compute state, send to client
data = {"message": "nudes"} data = {"message": "nudes"}
for socket in self.sockets[clientid]: for socket in self.sockets[clientid]:
socket.send_json(data) await socket.send_json(data)
def save(self): def save(self):
with open(self.filename, "w") as f: with open(self.filename, "w") as f: