Compare commits
No commits in common. "b90858b5cb4bd4d2d447fe89d5465efea1639039" and "ee708e9127d9b8a1346256243a2bda3c1a628407" have entirely different histories.
b90858b5cb
...
ee708e9127
5
model.py
5
model.py
@ -72,11 +72,10 @@ class Model(object):
|
|||||||
|
|
||||||
async def send_state(self, clientid):
|
async def send_state(self, clientid):
|
||||||
# TODO: compute state, send to client
|
# TODO: compute state, send to client
|
||||||
session = "No session"
|
session = "deine mudda"
|
||||||
if "session" in self.model["clients"][clientid]:
|
if "session" in self.model["clients"][clientid]:
|
||||||
session = self.model["clients"][clientid]["session"]
|
session = self.model["clients"][clientid]["session"]
|
||||||
allsessions = [ name for name in self.model["sessions"] ]
|
data = {"session": session}
|
||||||
data = {"currentsession": session, "allsessions": allsessions}
|
|
||||||
for socket in self.sockets[clientid]:
|
for socket in self.sockets[clientid]:
|
||||||
await socket.send_json(data)
|
await socket.send_json(data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user