From ebfdcbaa07f1062aa61266c08f2cf9e99b855010 Mon Sep 17 00:00:00 2001 From: Fallen_Breath Date: Fri, 8 Dec 2023 21:09:56 +0800 Subject: [PATCH] fixes --- prime_backup/mcdr/command/commands.py | 1 + prime_backup/mcdr/task/backup/export_backup_task.py | 1 - prime_backup/mcdr/text_components.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prime_backup/mcdr/command/commands.py b/prime_backup/mcdr/command/commands.py index c83eb89..9eb3485 100644 --- a/prime_backup/mcdr/command/commands.py +++ b/prime_backup/mcdr/command/commands.py @@ -212,6 +212,7 @@ def create_backup_id(arg: str = 'backup_id', clazz: Type[Integer] = Integer) -> builder.command('make', self.cmd_make) builder.command('make ', self.cmd_make) builder.command('rename ', self.cmd_rename) + builder.command('delete_range ', self.cmd_delete_range) builder.command('prune', self.cmd_prune) # crontab diff --git a/prime_backup/mcdr/task/backup/export_backup_task.py b/prime_backup/mcdr/task/backup/export_backup_task.py index c0e9995..df09836 100644 --- a/prime_backup/mcdr/task/backup/export_backup_task.py +++ b/prime_backup/mcdr/task/backup/export_backup_task.py @@ -73,7 +73,6 @@ def make_output(extension: str) -> Path: '{} mode={}: ({}) {}', RText(failure.file.path, TextColors.file), oct(failure.file.mode), - RText(failure.file.path, TextColors.file), type(failure.error).__name__, str(failure.error), )) diff --git a/prime_backup/mcdr/text_components.py b/prime_backup/mcdr/text_components.py index e95148e..9ce924c 100644 --- a/prime_backup/mcdr/text_components.py +++ b/prime_backup/mcdr/text_components.py @@ -64,7 +64,7 @@ def backup_comment(cls, comment: str) -> RTextBase: return cls.tr(f'backup_comment.{key}') return RText(comment) else: - cls.tr('backup_comment.none').set_color(RColor.gray).set_styles(RStyle.italic) + return cls.tr('backup_comment.none').set_color(RColor.gray).set_styles(RStyle.italic) @classmethod def backup_date(cls, backup: BackupInfo):