🐛 fix(service.py): update filter logic to include components with status "Public" in addition to "public"
This commit is contained in:
parent
1ba97aedcb
commit
7d4e3e2614
1 changed files with 4 additions and 1 deletions
|
|
@ -135,7 +135,10 @@ class StoreService(Service):
|
|||
else ",".join(["id", "name", "description", "count(likes)", "is_component"])
|
||||
)
|
||||
# Only public components or the ones created by the user
|
||||
params["filter"] = json.dumps({"status": {"_eq": "public"}})
|
||||
# check for "public" or "Public"
|
||||
params["filter"] = json.dumps(
|
||||
{"_or": [{"status": {"_eq": "public"}}, {"status": {"_eq": "Public"}}]}
|
||||
)
|
||||
|
||||
if filter_by_user:
|
||||
params["deep"] = json.dumps(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue