Skip to content

Commit bad31c0

Browse files
author
Chibu Ukachi
committed
retrieve from output id only
1 parent a8e900d commit bad31c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/response_regeneration/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def load_seen(path: str):
115115
obj = json.loads(line)
116116
except json.JSONDecodeError:
117117
continue
118-
# Match the actual output format: "id" field and "idx" in metadata
119-
key = obj.get("id") or obj.get("metadata", {}).get("idx")
118+
# Match the actual output format: "id" field
119+
key = obj.get("id")
120120
if key is not None:
121121
seen.add(str(key))
122122
return seen

0 commit comments

Comments
 (0)