mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
I don't know how to indent
This commit is contained in:
parent
a661d33698
commit
4e4911e0b5
@ -404,16 +404,16 @@ class Server:
|
|||||||
self.stop_threaded_server()
|
self.stop_threaded_server()
|
||||||
else:
|
else:
|
||||||
wasStarted = False
|
wasStarted = False
|
||||||
if len(websocket_helper.clients) > 0:
|
if len(websocket_helper.clients) > 0:
|
||||||
# There are clients
|
# There are clients
|
||||||
self.check_update()
|
self.check_update()
|
||||||
message = '<a data-id="'+self.server_id+'" class=""> UPDATING...</i></a>'
|
message = '<a data-id="'+self.server_id+'" class=""> UPDATING...</i></a>'
|
||||||
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,
|
||||||
'string': message
|
'string': message
|
||||||
})
|
})
|
||||||
backup_dir = os.path.join(self.settings['path'], 'crafty_executable_backups')
|
backup_dir = os.path.join(self.settings['path'], 'crafty_executable_backups')
|
||||||
#checks if backup directory already exists
|
#checks if backup directory already exists
|
||||||
if os.path.isdir(backup_dir):
|
if os.path.isdir(backup_dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user