From 10360490c7d5f30554c47d92a16c236dd8cd7949 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 12 Jan 2025 12:49:14 -0500 Subject: [PATCH] Ritht join --- services/web/project/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 27bacf4..25026c8 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -612,7 +612,7 @@ def panel_products(current_user): PRODUCT_LIST = f"""SELECT p.id,p.uid,p.product_id,p.name,p.description,p.status,p.banner, 'Activate Now' AS status_text FROM products p - JOIN members_products mp ON mp.product_id = p.product_id + RIGHT JOIN members_products mp ON mp.product_id = p.product_id WHERE mp.member_id ={user_id} ORDER BY p.id ASC""" with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor: