diff options
-rw-r--r-- | fuzzycat/refs.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fuzzycat/refs.py b/fuzzycat/refs.py index 3f6b2ed..e2c3043 100644 --- a/fuzzycat/refs.py +++ b/fuzzycat/refs.py @@ -32,6 +32,10 @@ def ref_entities(docs): for doc in docs: try: if glom(doc, "extra.skate.status") == "ref": + # XXX: on the fly fix for int/str years + release_year = doc.get("release_year") + if release_year is not None and isinstance(release_year, str): + doc["release_year"] = int(release_year) yield doc except PathAccessError: continue |