sync errors
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user