Merge pull request #2116 from filips123/patch-2
Add response to some commands
This commit is contained in:
commit
08b7034d6f
1 changed files with 4 additions and 0 deletions
|
@ -362,6 +362,8 @@ class UiWebsocket(object):
|
||||||
if channel not in self.channels:
|
if channel not in self.channels:
|
||||||
self.channels.append(channel)
|
self.channels.append(channel)
|
||||||
|
|
||||||
|
self.response(to, "ok")
|
||||||
|
|
||||||
# Server variables
|
# Server variables
|
||||||
def actionServerInfo(self, to):
|
def actionServerInfo(self, to):
|
||||||
back = self.formatServerInfo()
|
back = self.formatServerInfo()
|
||||||
|
@ -878,6 +880,8 @@ class UiWebsocket(object):
|
||||||
if self not in site.websockets:
|
if self not in site.websockets:
|
||||||
site.websockets.append(self)
|
site.websockets.append(self)
|
||||||
|
|
||||||
|
self.response(to, "ok")
|
||||||
|
|
||||||
# Update site content.json
|
# Update site content.json
|
||||||
def actionSiteUpdate(self, to, address, check_files=False, since=None, announce=False):
|
def actionSiteUpdate(self, to, address, check_files=False, since=None, announce=False):
|
||||||
def updateThread():
|
def updateThread():
|
||||||
|
|
Loading…
Reference in a new issue