mirror of
https://github.com/netinvent/npbackup.git
synced 2026-01-06 15:44:17 +08:00
Reformat files with black
This commit is contained in:
parent
932422cea3
commit
585cdaa7ba
2 changed files with 21 additions and 3 deletions
|
|
@ -126,7 +126,7 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
type=str,
|
||||
default=None,
|
||||
required=False,
|
||||
help='Forget given snapshot',
|
||||
help="Forget given snapshot",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--policy",
|
||||
|
|
@ -523,7 +523,26 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
cli_args["operation"] = "has_recent_snapshot"
|
||||
|
||||
# Group operation mode
|
||||
if args.group_operation not in ("backup", "restore", "snapshots", "list", "ls", "find", "policy", "quick_check", "full_check", "prune", "prune_max", "unlock", "repair_index", "repair_snapshots", "dump", "stats", "raw", "has_recent_snapshot"):
|
||||
if args.group_operation not in (
|
||||
"backup",
|
||||
"restore",
|
||||
"snapshots",
|
||||
"list",
|
||||
"ls",
|
||||
"find",
|
||||
"policy",
|
||||
"quick_check",
|
||||
"full_check",
|
||||
"prune",
|
||||
"prune_max",
|
||||
"unlock",
|
||||
"repair_index",
|
||||
"repair_snapshots",
|
||||
"dump",
|
||||
"stats",
|
||||
"raw",
|
||||
"has_recent_snapshot",
|
||||
):
|
||||
logger.critical(
|
||||
f"Invalid group operation {args.group_operation}. Valid operations are [backup|restore|snapshots|list|ls|find|policy|quick_check|full_check|prune|prune_max|unlock|repair_index|repair_snapshots|dump|stats|raw|has_recent_snapshot]"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -891,7 +891,6 @@ def _main_gui(viewer_mode: bool):
|
|||
if not config_file and not full_config and not viewer_mode:
|
||||
window["-NO-CONFIG-"].Update(visible=True)
|
||||
|
||||
|
||||
# Don't load repo info on first load, unless we're dealing with viewer
|
||||
if repo_config and viewer_mode:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue