Compare commits

..

No commits in common. "b90858b5cb4bd4d2d447fe89d5465efea1639039" and "ee708e9127d9b8a1346256243a2bda3c1a628407" have entirely different histories.

View File

@ -72,11 +72,10 @@ class Model(object):
async def send_state(self, clientid):
# TODO: compute state, send to client
session = "No session"
session = "deine mudda"
if "session" in self.model["clients"][clientid]:
session = self.model["clients"][clientid]["session"]
allsessions = [ name for name in self.model["sessions"] ]
data = {"currentsession": session, "allsessions": allsessions}
data = {"session": session}
for socket in self.sockets[clientid]:
await socket.send_json(data)