From f9e8eac46ed51c752f4cb3437efd5a7ae0a1bbe1 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 12 Jan 2025 13:15:07 -0500 Subject: [PATCH] fix query --- services/web/project/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index fb6dba0..074dc68 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -695,7 +695,8 @@ def product_urls(current_user): mp.added::text AS date, 'https://'||''||mp.internal_url AS url, mp.product_id, (CASE WHEN mp.status=6 THEN 'Preparing' WHEN mp.status =7 THEN 'Active' ELSE 'Unknown' END) AS status, 'https://' AS http FROM members_products mp - LEFT JOIN products p ON p.product_id =mp.product_id AND mp.member_id = {user_id}""" + LEFT JOIN products p ON p.product_id =mp.product_id + WHERE mp.member_id = {user_id}""" with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor: cursor.execute(PRODUCT_URL) recent_actions = cursor.fetchall()