Minor changes

This commit is contained in:
Andrew McManus 2021-07-26 22:22:31 -04:00
parent c3b4b1f213
commit feab08b36f

View File

@ -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'])