fix(verify): scan all engrams

This commit is contained in:
2026-05-27 01:11:59 +02:00
parent f8ac0af869
commit 1635ee8b03

View File

@@ -67,7 +67,14 @@ def main() -> int:
return 1
store = EngramStore(str(DB_PATH))
all_egs = store.get_all()
all_egs = []
offset = 0
while True:
batch = store.get_all(limit=2000, offset=offset)
if not batch:
break
all_egs.extend(batch)
offset += len(batch)
pending = [
eg
for eg in all_egs
@@ -160,4 +167,3 @@ def main() -> int:
if __name__ == "__main__":
raise SystemExit(main())