Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3c852bcbd5
1
backups/2020-04-17-005940_tehmodel.json
Normal file
1
backups/2020-04-17-005940_tehmodel.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}}
|
1
backups/2020-04-17-005956_tehmodel.json
Normal file
1
backups/2020-04-17-005956_tehmodel.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"clients": {"hrp7wawucurqzzap": {"id": "hrp7wawucurqzzap"}}, "sessions": {}}
|
2
model.py
2
model.py
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user