sync errors
This commit is contained in:
@@ -45,13 +45,9 @@ def run_sync(limit: int | None = None) -> None:
|
||||
log.info("Work dir ready: %s", work_dir)
|
||||
|
||||
log.info("Connecting to SFTP %s@%s:%s ...", cfg.sftp.user, cfg.sftp.host, cfg.sftp.port)
|
||||
new_zips = sftp_module.list_new_zips(cfg.sftp)
|
||||
new_zips = sftp_module.list_new_zips(cfg.sftp, max_results=limit)
|
||||
counters["zips_found"] = len(new_zips)
|
||||
|
||||
# Test mode: cap at the explicit limit
|
||||
if limit is not None:
|
||||
new_zips = new_zips[:limit]
|
||||
|
||||
counters["zips_new"] = len(new_zips)
|
||||
|
||||
if not new_zips:
|
||||
|
||||
Reference in New Issue
Block a user