Fix adding of time to relay messages

This commit is contained in:
Mark Veidemanis 2019-08-05 23:10:06 +01:00
parent 0ee8ae0ead
commit c0b45c1db6
1 changed files with 1 additions and 1 deletions

View File

@ -140,5 +140,5 @@ def sendRelayNotification(name, cast):
if cast["type"] in main.relayConnections[i].subscriptions or set(main.relayConnections[i].subscriptions).issubset(cast): if cast["type"] in main.relayConnections[i].subscriptions or set(main.relayConnections[i].subscriptions).issubset(cast):
newCast = deepcopy(cast) newCast = deepcopy(cast)
newCast["name"] = name newCast["name"] = name
newCast["time"] = datetime.now() newCast["time"] = str(datetime.now())
main.relayConnections[i].send(dumps(newCast)) main.relayConnections[i].send(dumps(newCast))