sync errors

This commit is contained in:
2026-05-10 17:49:42 +02:00
parent 4fef7fbf00
commit e754b14085
3 changed files with 23 additions and 2 deletions
+7
View File
@@ -103,6 +103,13 @@ def is_zip_processed(remote_path: str) -> bool:
return row is not None
def get_all_processed_paths() -> set[str]:
"""Return all processed remote paths as a set for fast bulk membership checks."""
with get_db() as conn:
rows = conn.execute("SELECT remote_path FROM processed_zips").fetchall()
return {row["remote_path"] for row in rows}
def mark_zip_processed(remote_path: str, file_size: int, status: str, error_msg: str | None = None) -> None:
with get_db() as conn:
conn.execute(