diff --git a/app/classes/controllers/management_controller.py b/app/classes/controllers/management_controller.py index 1d1fdc8f..1cb99808 100644 --- a/app/classes/controllers/management_controller.py +++ b/app/classes/controllers/management_controller.py @@ -117,4 +117,4 @@ class Management_Controller: @staticmethod def del_excluded_backup_dir(server_id: int, dir_to_del: str): - management_helper.del_excluded_backup_dir(server_id, dir_to_del) \ No newline at end of file + management_helper.del_excluded_backup_dir(server_id, dir_to_del) diff --git a/app/classes/models/management.py b/app/classes/models/management.py index 887b2d27..faafadfc 100644 --- a/app/classes/models/management.py +++ b/app/classes/models/management.py @@ -354,7 +354,7 @@ class helpers_management: Servers.update(backup_path=backup_path).where(Servers.server_id == server_id) Backups.create(**conf) logger.debug("Creating new backup record.") - + @staticmethod def get_excluded_backup_dirs(server_id: int): excluded_dirs = helpers_management.get_backup_config(server_id)['excluded_dirs'] @@ -370,7 +370,7 @@ class helpers_management: management_helper.set_backup_config(server_id=server_id, excluded_dirs=excluded_dirs) else: logger.debug(f"Not adding {dir_to_add} to excluded directories - already in the excluded directory list for server ID {server_id}") - + @staticmethod def del_excluded_backup_dir(server_id: int, dir_to_del: str): dir_list = management_helper.get_excluded_backup_dirs() diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index 72a583a7..7978e678 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -756,11 +756,18 @@ class Helpers: - {filename} + {filename}
  • \n"""\ + else: + output += f"""
  • {filename}
  • """ + return output @staticmethod @@ -782,10 +789,18 @@ class Helpers: - {filename} + {filename}
  • """\ + else: + output += f"""
  • {filename}
  • """ + + return output @staticmethod