From a69177ae9ee4a367db63ef4e7c7a81b68d4e599a Mon Sep 17 00:00:00 2001 From: Aakash Shankar Date: Mon, 9 Dec 2024 23:28:29 -0500 Subject: [PATCH] #247 only approved services in user bookmarks (#251) --- src/home/repositories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/home/repositories.py b/src/home/repositories.py index 91af833..9bbb2f8 100644 --- a/src/home/repositories.py +++ b/src/home/repositories.py @@ -228,7 +228,7 @@ def get_user_bookmarks(self, user_id): service = self.services_table.get_item(Key={"Id": service_id}).get( "Item" ) - if service: + if service and service.get("ServiceStatus", "APPROVED") == "APPROVED": services.append(service) return services except ClientError as e: