1
0
Fork 0
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:
real-yfprojects 2022-11-05 10:29:07 +01:00 committed by Manu
parent 1ced42a878
commit 14a1de8c62

View file

@ -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