diff --git a/app/classes/shared/main_controller.py b/app/classes/shared/main_controller.py index a585ca5b..65a74e19 100644 --- a/app/classes/shared/main_controller.py +++ b/app/classes/shared/main_controller.py @@ -162,7 +162,11 @@ class Controller: #we'll iterate through our list of log paths from auth servers. for server in auth_servers: final_path = os.path.join(server_path, str(server['server_name'])) - os.mkdir(final_path) + try: + os.mkdir(final_path) + except FileExistsError: + final_path += '_'+server['server_uuid'] + os.mkdir(final_path) try: file_helper.copy_file(server['log_path'], final_path) except Exception as e: diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 4a2112bf..ee07a227 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -184,7 +184,7 @@ class PanelHandler(BaseHandler): # pylint: disable=unused-variable api_key, token_data, exec_user = self.current_user superuser = exec_user['superuser'] - preparing = exec_user['preparing'] + print() if api_key is not None: superuser = superuser and api_key.superuser @@ -255,7 +255,6 @@ class PanelHandler(BaseHandler): 'lang': self.controller.users.get_user_lang_by_id(exec_user["user_id"]), 'lang_page': helper.getLangPage(self.controller.users.get_user_lang_by_id(exec_user["user_id"])), 'super_user': superuser, - 'preparing': preparing, 'api_key': { 'name': api_key.name, 'created': api_key.created, diff --git a/app/frontend/templates/notify.html b/app/frontend/templates/notify.html index 583791a2..07659b12 100644 --- a/app/frontend/templates/notify.html +++ b/app/frontend/templates/notify.html @@ -32,7 +32,7 @@ {% end %}
Email: {{ data['user_data']['email'] }}
- {% if data['preparing'] %} + {% if data['user_data']['preparing'] %} {{ translate('notify', 'supportLogs', data['lang']) }}