summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-31 23:13:48 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-31 23:13:48 +0100
commit9031bfd9da5ac83beca96c629573ed809a5e3933 (patch)
tree5af2e04533213a02b27f37cebf4f75cb3f119bd9 /accounts
parent7a932d340da5ee49241503ce7b90c704d4ae22ff (diff)
downloadnixos-9031bfd9da5ac83beca96c629573ed809a5e3933.tar
nixos-9031bfd9da5ac83beca96c629573ed809a5e3933.tar.gz
nixos-9031bfd9da5ac83beca96c629573ed809a5e3933.tar.bz2
nixos-9031bfd9da5ac83beca96c629573ed809a5e3933.tar.xz
nixos-9031bfd9da5ac83beca96c629573ed809a5e3933.zip
...
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@sif/systemd.nix6
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