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()