Fix more lint

This commit is contained in:
amcmanu3 2024-05-25 22:25:29 -04:00
parent 74ef9e0a13
commit bf196b68c0
2 changed files with 0 additions and 28 deletions

View File

@ -394,30 +394,6 @@ class HelpersManagement:
dir_list = [] dir_list = []
return dir_list return dir_list
def add_excluded_backup_dir(self, server_id: str, dir_to_add: str):
dir_list = self.get_excluded_backup_dirs(server_id)
if dir_to_add not in dir_list:
dir_list.append(dir_to_add)
excluded_dirs = ",".join(dir_list)
self.update_backup_config(server_id=server_id, excluded_dirs=excluded_dirs)
else:
logger.debug(
f"Not adding {dir_to_add} to excluded directories - "
f"already in the excluded directory list for server ID {server_id}"
)
def del_excluded_backup_dir(self, server_id: str, dir_to_del: str):
dir_list = self.get_excluded_backup_dirs(server_id)
if dir_to_del in dir_list:
dir_list.remove(dir_to_del)
excluded_dirs = ",".join(dir_list)
self.update_backup_config(server_id=server_id, excluded_dirs=excluded_dirs)
else:
logger.debug(
f"Not removing {dir_to_del} from excluded directories - "
f"not in the excluded directory list for server ID {server_id}"
)
# ********************************************************************************** # **********************************************************************************
# Webhooks Class # Webhooks Class

View File

@ -707,7 +707,6 @@ class Controller:
server_name, server_name,
server_id, server_id,
new_server_dir, new_server_dir,
backup_path,
server_command, server_command,
server_jar, server_jar,
server_log_file, server_log_file,
@ -761,7 +760,6 @@ class Controller:
server_name, server_name,
server_id, server_id,
new_server_dir, new_server_dir,
backup_path,
server_command, server_command,
server_exe, server_exe,
server_log_file, server_log_file,
@ -806,7 +804,6 @@ class Controller:
server_name, server_name,
server_id, server_id,
new_server_dir, new_server_dir,
backup_path,
server_command, server_command,
server_exe, server_exe,
server_log_file, server_log_file,
@ -854,7 +851,6 @@ class Controller:
server_name, server_name,
server_id, server_id,
new_server_dir, new_server_dir,
backup_path,
server_command, server_command,
server_exe, server_exe,
server_log_file, server_log_file,