From c9d63d912f58c28f14e4c39c8f5bb6a77ebda042 Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Thu, 26 Dec 2024 16:06:25 +0100 Subject: [PATCH] Dev (#2913) * feat(chalice): autocomplete return top 10 with stats * fix(chalice): fixed autocomplete top 10 meta-filters * fix(chalice): fixed get null card info --- api/chalicelib/core/metrics/custom_metrics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/chalicelib/core/metrics/custom_metrics.py b/api/chalicelib/core/metrics/custom_metrics.py index 0065c1a47..1e359bddd 100644 --- a/api/chalicelib/core/metrics/custom_metrics.py +++ b/api/chalicelib/core/metrics/custom_metrics.py @@ -451,6 +451,8 @@ def delete_card(project_id, metric_id, user_id): def __get_global_attributes(row): + if row is None or row.get("cardInfo") is None: + return row card_info = row.get("cardInfo", {}) row["compareTo"] = card_info.get("compareTo", []) return row