From 4e4911e0b5c9daf5fbdcd4542f13c121d4537173 Mon Sep 17 00:00:00 2001 From: Andrew McManus Date: Mon, 26 Jul 2021 21:45:33 -0400 Subject: [PATCH] I don't know how to indent --- app/classes/shared/server.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index 40d422b3..6ee87395 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -404,16 +404,16 @@ class Server: self.stop_threaded_server() else: wasStarted = False - if len(websocket_helper.clients) > 0: - # There are clients - self.check_update() - message = ' UPDATING...' - websocket_helper.broadcast('update_button_status', { - 'isUpdating': self.check_update(), - 'server_id': self.server_id, - 'wasRunning': wasStarted, - 'string': message - }) + if len(websocket_helper.clients) > 0: + # There are clients + self.check_update() + message = ' UPDATING...' + websocket_helper.broadcast('update_button_status', { + 'isUpdating': self.check_update(), + 'server_id': self.server_id, + 'wasRunning': wasStarted, + 'string': message + }) backup_dir = os.path.join(self.settings['path'], 'crafty_executable_backups') #checks if backup directory already exists if os.path.isdir(backup_dir):