* feat(chalice): autocomplete return top 10 with stats

* fix(chalice): fixed autocomplete top 10 meta-filters

* fix(chalice): fixed get null card info
This commit is contained in:
Kraiem Taha Yassine 2024-12-26 16:06:25 +01:00 committed by GitHub
parent b92d5c8706
commit c9d63d912f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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