mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Minor changes
This commit is contained in:
parent
c3b4b1f213
commit
feab08b36f
@ -449,12 +449,13 @@ class Server:
|
|||||||
if len(websocket_helper.clients) > 0:
|
if len(websocket_helper.clients) > 0:
|
||||||
# There are clients
|
# There are clients
|
||||||
self.check_update()
|
self.check_update()
|
||||||
|
websocket_helper.broadcast('notification', "Executable update finished for " + self.name)
|
||||||
|
time.sleep(3)
|
||||||
websocket_helper.broadcast('update_button_status', {
|
websocket_helper.broadcast('update_button_status', {
|
||||||
'isUpdating': self.check_update(),
|
'isUpdating': self.check_update(),
|
||||||
'server_id': self.server_id,
|
'server_id': self.server_id,
|
||||||
'wasRunning': wasStarted
|
'wasRunning': wasStarted
|
||||||
})
|
})
|
||||||
time.sleep(7)
|
|
||||||
websocket_helper.broadcast('notification', "Executable update finished for "+self.name)
|
websocket_helper.broadcast('notification', "Executable update finished for "+self.name)
|
||||||
|
|
||||||
db_helper.add_to_audit_log_raw('Alert', '-1', self.server_id, "Executable update finished for "+self.name, self.settings['server_ip'])
|
db_helper.add_to_audit_log_raw('Alert', '-1', self.server_id, "Executable update finished for "+self.name, self.settings['server_ip'])
|
||||||
|
Loading…
Reference in New Issue
Block a user