home · contact · privacy
Fix sync script bug of adding paths rather than lists of paths to missings. master
authorChristian Heller <c.heller@plomlompom.de>
Fri, 29 Nov 2024 05:10:15 +0000 (06:10 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 29 Nov 2024 05:10:15 +0000 (06:10 +0100)
src/sync.py

index 2b6458171f486b8e4aedb1daf3c7b76da03a8726..a5bab58b247f7619e5678b38b6272adbbfccea4e 100755 (executable)
@@ -92,7 +92,7 @@ def main():
                        (config.host, config.port)):
         url_missing = f'http://{host}:{port}/{PAGE_NAMES["missing"]}'
         with urlopen(url_missing) as response:
-            missings += [Path(p) for p in json_loads(response.read())]
+            missings += [[Path(p) for p in json_loads(response.read())]]
     for i, direction_mover in enumerate([('local->remote', scp.put),
                                          ('remote->local', scp.get)]):
         direction, mover = direction_mover