Add response to some commands

This commit is contained in:
Filip Š 2019-08-01 19:16:10 +02:00 committed by GitHub
parent d8a121cd06
commit 5b91aef4ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,6 +362,8 @@ class UiWebsocket(object):
if channel not in self.channels:
self.channels.append(channel)
self.response(to, "ok")
# Server variables
def actionServerInfo(self, to):
back = self.formatServerInfo()
@ -878,6 +880,8 @@ class UiWebsocket(object):
if self not in site.websockets:
site.websockets.append(self)
self.response(to, "ok")
# Update site content.json
def actionSiteUpdate(self, to, address, check_files=False, since=None, announce=False):
def updateThread():