Skip to content

Commit 0f0a367

Browse files
committed
fix(ingest): annotate compact entity cache payload
Refs #99 Refs GetTechAPI/TechAPI#295
1 parent 52e632e commit 0f0a367

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/ingest/wikidata_fill.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
def compact(entity: dict[str, Any]) -> dict[str, Any]:
3434
"""Discard unrelated claims, qualifiers and references from the fill cache."""
35-
result = {key: entity[key] for key in ("id", "missing", "redirect", "lastrevid", "labels")
35+
result: dict[str, Any] = {key: entity[key] for key in ("id", "missing", "redirect", "lastrevid", "labels")
3636
if key in entity}
3737
result["claims"] = {
3838
prop: [{"rank": s.get("rank", "normal"), "mainsnak": s.get("mainsnak", {})}

0 commit comments

Comments
 (0)