From 327991a675f4a99f423e4ef22584a5841957fb5d Mon Sep 17 00:00:00 2001 From: Mathieu Agopian Date: Mon, 2 Dec 2024 16:02:11 +0100 Subject: [PATCH] Testing it out with storing `featured` as a boolean instead of an int This needs https://github.com/opendatateam/udata-search-service/pull/51 --- udata/core/dataset/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udata/core/dataset/search.py b/udata/core/dataset/search.py index 15d1249bcc..6bc8962610 100644 --- a/udata/core/dataset/search.py +++ b/udata/core/dataset/search.py @@ -96,7 +96,7 @@ def serialize(cls, dataset): "views": dataset.metrics.get("views", 0), "followers": dataset.metrics.get("followers", 0), "reuses": dataset.metrics.get("reuses", 0), - "featured": 1 if dataset.featured else 0, + "featured": "true" if dataset.featured else "false", "resources_count": len(dataset.resources), "organization": organization, "owner": str(owner.id) if owner else None,