Remove provisioning restrictions, move all user tracking code to monitoring module, fix proper network name not being passed to the relay

This commit is contained in:
2019-08-12 21:03:47 +01:00
parent 51b89b9d05
commit 1ec0e1f7e6
5 changed files with 90 additions and 84 deletions

View File

@@ -132,11 +132,10 @@ class RelayFactory(Factory):
else:
return
def sendRelayNotification(name, cast):
def sendRelayNotification(cast):
for i in main.relayConnections.keys():
if main.relayConnections[i].authed:
if cast["type"] in main.relayConnections[i].subscriptions:
newCast = deepcopy(cast)
newCast["name"] = name
newCast["time"] = str(datetime.now().isoformat())
main.relayConnections[i].send(dumps(newCast))