From 2f6be8440ccf363a1fbcc26b80dc0d97f6f36a05 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 11 Jan 2025 14:38:26 -0500 Subject: [PATCH] actionJS --- 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 b309ec4..6446501 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -647,7 +647,7 @@ def recent_actions(current_user): # RECENT_ACTIONS = "SELECT * FROM members_actions WHERE member_id = " + user_id + " ORDER by id DESC LIMIT 4" # RECENT_ACTIONS = "SELECT * FROM members_actions WHERE member_id::text = %s ORDER by id DESC LIMIT 4" # print(user_id) - RECENT_ACTIONS = f"SELECT id AS no,action_label AS description,added AS date,status FROM members_actions WHERE member_id = {user_id} ORDER by id DESC LIMIT 4" + RECENT_ACTIONS = f"SELECT id AS no,action_label AS description,added::text AS date,status FROM members_actions WHERE member_id = {user_id} ORDER by id DESC LIMIT 4" actionVal = (user_id) with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor: cursor.execute(RECENT_ACTIONS)