Formatting
This commit is contained in:
parent
7a483e7912
commit
1b307166ee
1 changed files with 1 additions and 2 deletions
|
@ -948,7 +948,7 @@ class UiWebsocket(object):
|
||||||
new_site.settings["own"] = True
|
new_site.settings["own"] = True
|
||||||
new_site.saveSettings()
|
new_site.saveSettings()
|
||||||
self.cmd("notification", ["done", _["Site cloned"]])
|
self.cmd("notification", ["done", _["Site cloned"]])
|
||||||
if redirect :
|
if redirect:
|
||||||
self.cmd("redirect", "/%s" % new_address)
|
self.cmd("redirect", "/%s" % new_address)
|
||||||
gevent.spawn(new_site.announce)
|
gevent.spawn(new_site.announce)
|
||||||
response = {"address": new_address}
|
response = {"address": new_address}
|
||||||
|
@ -1048,7 +1048,6 @@ class UiWebsocket(object):
|
||||||
self.site.settings["cache"]["modified_files"] = modified_files
|
self.site.settings["cache"]["modified_files"] = modified_files
|
||||||
return {"modified_files": modified_files}
|
return {"modified_files": modified_files}
|
||||||
|
|
||||||
|
|
||||||
def actionSiteSetSettingsValue(self, to, key, value):
|
def actionSiteSetSettingsValue(self, to, key, value):
|
||||||
if key not in ["modified_files_notification"]:
|
if key not in ["modified_files_notification"]:
|
||||||
return {"error": "Can't change this key"}
|
return {"error": "Can't change this key"}
|
||||||
|
|
Loading…
Reference in a new issue