Ritht join
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user