mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 09:59:19 -04:00
fix formatkeys so it always has all available formatting keys
- always: no matter whether we use a user-defined format or not - all: fix bug: it only had the basic keys, not the advanced keys
This commit is contained in:
parent
08a7ce5cc3
commit
b28f4d886b
1 changed files with 1 additions and 2 deletions
|
|
@ -509,10 +509,9 @@ class Archiver:
|
|||
'LF': "\n",
|
||||
'CR': "\r",
|
||||
'NEWLINE': os.linesep,
|
||||
'formatkeys': ()
|
||||
}
|
||||
item_data_advanced["formatkeys"] = list(item_data.keys())
|
||||
item_data.update(item_data_advanced)
|
||||
item_data['formatkeys'] = list(item_data.keys())
|
||||
|
||||
if use_user_format:
|
||||
print(format_line(user_format, item_data), end='')
|
||||
|
|
|
|||
Loading…
Reference in a new issue