diff options
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/entity_helpers.py | 2 | ||||
-rw-r--r-- | python/fatcat_web/search.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat_web/entity_helpers.py b/python/fatcat_web/entity_helpers.py index 2e3b83c5..285513a8 100644 --- a/python/fatcat_web/entity_helpers.py +++ b/python/fatcat_web/entity_helpers.py @@ -92,7 +92,7 @@ def enrich_release_entity(entity: ReleaseEntity) -> ReleaseEntity: # November 1. if ref.extra and ref.extra.get("unstructured"): ref.extra["unstructured"] = strip_extlink_xml(ref.extra["unstructured"]) - # for backwards compatability, copy extra['subtitle'] to subtitle + # for backwards compatibility, copy extra['subtitle'] to subtitle if not entity.subtitle and entity.extra and entity.extra.get("subtitle"): if isinstance(entity.extra["subtitle"], str): entity.subtitle = entity.extra["subtitle"] diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py index fdfc4d80..b9994f28 100644 --- a/python/fatcat_web/search.py +++ b/python/fatcat_web/search.py @@ -161,8 +161,8 @@ def agg_to_dict(agg: Any) -> Dict[str, Any]: """ Takes a simple term aggregation result (with buckets) and returns a simple dict with keys as terms and counts as values. Includes an extra value - '_other', and by convention aggregations should be writen to have "missing" - vaules as '_unknown'. + '_other', and by convention aggregations should be written to have "missing" + values as '_unknown'. """ result = dict() for bucket in agg.buckets: |