From bac6c437c67ed8ad43fea29efd25320544d6052b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 12 Jan 2025 10:47:32 -0500 Subject: [PATCH] comiit text --- services/web/project/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index bf024fa..66fb6b8 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -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'}, ] }