From 36913490481910d8c68c66c8680da2e8cf1218bb Mon Sep 17 00:00:00 2001 From: Stijn Peeters Date: Mon, 23 Sep 2024 17:46:36 +0200 Subject: [PATCH] Cast to string when lowercasing in rank_attributes --- processors/metrics/rank_attribute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processors/metrics/rank_attribute.py b/processors/metrics/rank_attribute.py index 0e38757c6..9b90b3c7b 100644 --- a/processors/metrics/rank_attribute.py +++ b/processors/metrics/rank_attribute.py @@ -203,7 +203,7 @@ def missing_value_placeholder(data, field_name): # keep track of occurrences of found items per relevant time period for value in values: if to_lowercase: - value = value.lower() + value = str(value).lower() if rank_style == "overall" and value not in overall_top: continue