fix: CLI sync downloads tables with empty hash (not yet computed)
Empty server hash was matching empty local hash, skipping all tables. Now treats empty hash or missing local entry as 'needs download'.
This commit is contained in:
parent
2d6a94fb6f
commit
6aee6cf454
1 changed files with 3 additions and 1 deletions
|
|
@ -52,7 +52,9 @@ def sync(
|
|||
if docs_only:
|
||||
continue
|
||||
local_hash = local_tables.get(tid, {}).get("hash", "")
|
||||
if info.get("hash", "") != local_hash:
|
||||
server_hash = info.get("hash", "")
|
||||
# Download if: hashes differ, or no local copy, or hash is empty (not computed)
|
||||
if server_hash != local_hash or tid not in local_tables or not server_hash:
|
||||
to_download.append(tid)
|
||||
|
||||
progress.update(task, description=f"Found {len(to_download)} tables to sync")
|
||||
|
|
|
|||
Loading…
Reference in a new issue