mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
Add missing brackets fixing BorgListArchiveJob
.
In python `+` takes precedence over the `if-else` operator. Therefore brackets are needed around the latter. * src/vorta/borg/list_archive.py (BorgListArchiveJob.prepare)
This commit is contained in:
parent
1ced42a878
commit
14a1de8c62
1 changed files with 3 additions and 3 deletions
|
@ -27,9 +27,9 @@ def prepare(cls, profile, archive_name):
|
|||
'--json-lines',
|
||||
'--format',
|
||||
# fields to include in json output
|
||||
"{mode}{user}{group}{size}{" + 'isomtime'
|
||||
if borg_compat.check('V122')
|
||||
else 'mtime' + "}{path}{source}{health}{NL}",
|
||||
"{mode}{user}{group}{size}{"
|
||||
+ ('isomtime' if borg_compat.check('V122') else 'mtime')
|
||||
+ "}{path}{source}{health}{NL}",
|
||||
]
|
||||
ret['ok'] = True
|
||||
|
||||
|
|
Loading…
Reference in a new issue