home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a40eb8f
)
Fix sync script bug of adding paths rather than lists of paths to missings.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 29 Nov 2024 05:10:15 +0000
(06:10 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 29 Nov 2024 05:10:15 +0000
(06:10 +0100)
src/sync.py
patch
|
blob
|
history
diff --git
a/src/sync.py
b/src/sync.py
index 2b6458171f486b8e4aedb1daf3c7b76da03a8726..a5bab58b247f7619e5678b38b6272adbbfccea4e 100755
(executable)
--- 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