From 9031bfd9da5ac83beca96c629573ed809a5e3933 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 31 Jan 2022 23:13:48 +0100 Subject: ... --- accounts/gkleen@sif/systemd.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index ff3d11af..de2d92f8 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix @@ -73,9 +73,11 @@ in { upload_time = None with subprocess.Popen(['rclone', 'lsjson', f'{remote_fs}:{dirname(remote_file)}'], stdout=subprocess.PIPE) as proc: # noqa: E501 for file in json.load(proc.stdout): - if file['Path'] != 'store.kdbx': + if file['Path'] != remote_file: continue - upload_time = isoparse(file['ModTime']) + else: + upload_time = isoparse(file['ModTime']) + break return upload_time -- cgit v1.2.3