From a3135b0cf7b684ac426b686715c335eaa28b5a77 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 29 Nov 2024 06:10:15 +0100
Subject: [PATCH] Fix sync script bug of adding paths rather than lists of
 paths to missings.

---
 src/sync.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sync.py b/src/sync.py
index 2b64581..a5bab58 100755
--- a/src/sync.py
+++ b/src/sync.py
@@ -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
-- 
2.30.2