# HG changeset patch # User Drew Perttula # Date 1558828494 0 # Node ID 9b4c551dddfba108bf7f481e208a34a558049f61 # Parent fefdf52fc6bc3a52ecb6483de203424da14e7454 fix registration bug (tried to send bytes to json encoder) Ignore-this: 166816604c34341844b4b4bb0618ff71 diff -r fefdf52fc6bc -r 9b4c551dddfb rdfdb/service.py --- a/rdfdb/service.py Sat May 25 06:39:30 2019 +0000 +++ b/rdfdb/service.py Sat May 25 23:54:54 2019 +0000 @@ -35,7 +35,7 @@ """ one of our syncedgraph clients """ - def __init__(self, updateUri: bytes, label): + def __init__(self, updateUri: bytes, label: str): self.label = label # todo: updateUri is used publicly to compare clients. Replace # it with Client.__eq__ so WsClient doesn't have to fake an @@ -268,9 +268,9 @@ self.clients.append(newClient) self.sendClientsToAllLivePages() - def sendClientsToAllLivePages(self): - sendToLiveClients({"clients":[ - dict(updateUri=c.updateUri, label=repr(c)) + def sendClientsToAllLivePages(self) -> None: + sendToLiveClients({"clients": [ + dict(updateUri=c.updateUri.decode('utf8'), label=repr(c)) for c in self.clients]}) class GraphResource(cyclone.web.RequestHandler):