PRODUCT_LIST
This commit is contained in:
@@ -615,6 +615,7 @@ def panel_products(current_user):
|
|||||||
RIGHT 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}
|
WHERE mp.member_id ={user_id}
|
||||||
ORDER BY p.id ASC"""
|
ORDER BY p.id ASC"""
|
||||||
|
print( PRODUCT_LIST )
|
||||||
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
||||||
cursor.execute(PRODUCT_LIST)
|
cursor.execute(PRODUCT_LIST)
|
||||||
products_list = cursor.fetchall()
|
products_list = cursor.fetchall()
|
||||||
|
|||||||
Reference in New Issue
Block a user