diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 17:37:24 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 17:37:24 +0100 |
commit | 916625b69b697617e695ccfd3ff28055d2007004 (patch) | |
tree | 26556b6b2048fe2931acbc4ce02e89b969e4389e /hosts | |
parent | 25579e3b53ad328493ed28a930549e56907adf59 (diff) | |
download | nixos-916625b69b697617e695ccfd3ff28055d2007004.tar nixos-916625b69b697617e695ccfd3ff28055d2007004.tar.gz nixos-916625b69b697617e695ccfd3ff28055d2007004.tar.bz2 nixos-916625b69b697617e695ccfd3ff28055d2007004.tar.xz nixos-916625b69b697617e695ccfd3ff28055d2007004.zip |
vidhar: ...
Diffstat (limited to 'hosts')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 1f65d053..809184a3 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -177,7 +177,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): | |||
177 | continue | 177 | continue |
178 | 178 | ||
179 | t = '' | 179 | t = '' |
180 | if 'time' in json_line: | 180 | if 'time' in json_line and stderr.isatty(): |
181 | ts = datetime.fromtimestamp(json_line['time']).replace(tzinfo=tzlocal()) | 181 | ts = datetime.fromtimestamp(json_line['time']).replace(tzinfo=tzlocal()) |
182 | t = f'{ts.isoformat(timespec="minutes")} ' | 182 | t = f'{ts.isoformat(timespec="minutes")} ' |
183 | if json_line['type'] == 'archive_progress': | 183 | if json_line['type'] == 'archive_progress': |