diff options
-rw-r--r-- | accounts/gkleen@sif/systemd.nix | 6 |
1 files 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 { | |||
73 | upload_time = None | 73 | upload_time = None |
74 | with subprocess.Popen(['rclone', 'lsjson', f'{remote_fs}:{dirname(remote_file)}'], stdout=subprocess.PIPE) as proc: # noqa: E501 | 74 | with subprocess.Popen(['rclone', 'lsjson', f'{remote_fs}:{dirname(remote_file)}'], stdout=subprocess.PIPE) as proc: # noqa: E501 |
75 | for file in json.load(proc.stdout): | 75 | for file in json.load(proc.stdout): |
76 | if file['Path'] != 'store.kdbx': | 76 | if file['Path'] != remote_file: |
77 | continue | 77 | continue |
78 | upload_time = isoparse(file['ModTime']) | 78 | else: |
79 | upload_time = isoparse(file['ModTime']) | ||
80 | break | ||
79 | return upload_time | 81 | return upload_time |
80 | 82 | ||
81 | 83 | ||