comiit text
This commit is contained in:
@@ -683,7 +683,7 @@ def product_urls(current_user):
|
||||
print( current_user["user"]["uid"])
|
||||
user_uid = current_user["user"]["uid"]
|
||||
user_id = current_user["user"]["id"]
|
||||
PRODUCT_URL = f"SELECT mp.id AS no, p.name AS description, mp.added::text AS date,mp.internal_url AS url,mp.status FROM members_products mp LEFT JOIN products p ON p.product_id =mp.product_id AND mp.member_id = {user_id}"
|
||||
PRODUCT_URL = f"SELECT mp.id AS no, p.name AS description, mp.added::text AS date,mp.internal_url AS url,mp.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}"
|
||||
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
||||
cursor.execute(PRODUCT_URL)
|
||||
recent_actions = cursor.fetchall()
|
||||
@@ -697,9 +697,9 @@ def product_urls(current_user):
|
||||
url_data = {
|
||||
"last_update": datetime.datetime.utcnow(),
|
||||
"url": [
|
||||
{"no": "1", "description": "Main Website", "url":'https://starter.0ach30996.mermsemr.com', "date": "10-10-2010 11:00 AM", "status": 'Active'},
|
||||
{"no": "1", "description": "Personal Blog", "url":'https://starterblo.0ach30996.mermsemr.com', "date": "10-10-2010 11:00 AM", "status": 'Updating'},
|
||||
{"no": "1", "description": "Business Web", "url":'https://starterbus.0ach30996.mermsemr.com', "date": "10-10-2010 11:00 AM", "status": 'Active'},
|
||||
{"no": "1", "description": "Main Website", "url":'https://ameye01.0ach30996.mermsemr.com', "date": "10-10-2010 11:00 AM", "status": 'Active'},
|
||||
{"no": "1", "description": "Personal Blog", "url":'https://starterblo.0ach31996.mermsemr.com', "date": "10-10-2010 11:00 AM", "status": 'Updating'},
|
||||
{"no": "1", "description": "Business Web", "url":'https://starterolu.0ach30996.mermsemr.com', "date": "10-10-2010 11:00 AM", "status": 'Active'},
|
||||
{"no": "1", "description": "Business Blog", "url":'https://starterbblog.0ach30996.mermsemr.com', "date": "10-10-2010 11:00 AM", "status": 'Active'},
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user