Skip to content

Commit

Permalink
Testing it out with storing featured as a boolean instead of an int
Browse files Browse the repository at this point in the history
  • Loading branch information
magopian committed Dec 2, 2024
1 parent f699f75 commit 327991a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udata/core/dataset/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 327991a

Please sign in to comment.