home · contact · privacy
Fix sync messages.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 26 Feb 2025 13:50:48 +0000 (14:50 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 26 Feb 2025 13:50:48 +0000 (14:50 +0100)
src/ytplom/http.py
src/ytplom/sync.py

index c4af15d9ff879a20c077fb58b35a851d4886a177..4958b1e4f39cec9ef5d0d119d4c691db1e10794f 100644 (file)
@@ -355,7 +355,8 @@ class _TaskHandler(PlomHttpHandler):
 
     def _send_missing_json(self) -> None:
         with DbConn() as conn:
-            missing = [f.digest.b64 for f in VideoFile.get_all(conn)
+            missing = [f.digest.b64 for
+                       f in VideoFile.get_all_non_deleted(conn)
                        if f.missing]
         self._send_json(missing)
 
index 5cc966b917be72c9a956c2e5798fccfe5fb1c151..13e49db2b337d9f8775bae070388aaae91eeb6ef 100644 (file)
@@ -23,7 +23,7 @@ def _back_and_forth(sync_func: Callable,
                     shared: Any
                     ) -> None:
     """Run sync_func on arg pairs + shared, and again with pairs switched."""
-    host_names = 'local', 'remote'
+    host_names = 'remote', 'local'
     sync_func(host_names, dbs, shared)
     sync_func(*(tuple(reversed(list(t))) for t in (host_names, dbs)), shared)