action data

This commit is contained in:
CHIEFSOFT\ameye
2025-07-20 21:28:43 -04:00
parent f394e9b449
commit 9710390254
+9 -9
View File
@@ -51,29 +51,29 @@ class AccountService(BaseService):
member_actions = MembersActions.get_recent_member_actions(member_data.id) member_actions = MembersActions.get_recent_member_actions(member_data.id)
member_actions_data = [] member_actions_data = []
product_data =[]
for t in member_actions: for t in member_actions:
product_data.append({ member_actions_data.append({
'id': t.id, 'id': t.id,
'uid': t.uid, 'uid': t.uid,
'product_id': t.product_id, 'member_id': t.member_id,
'name': t.name, 'member_uid': t.member_uid,
'description': t.description, 'action_label': t.action_label,
'action_name': t.action_name,
'status_description': t.status_description,
'status': t.status, 'status': t.status,
'added': t.added, 'added': t.added,
'updated': t.updated, 'updated': t.updated
'banner': t.banner
}) })
action_data = { action_data = {
"recent_actions": member_actions_data, "recent_actions": member_actions_data,
"last_update": datetime.datetime.utcnow(), "last_update": datetime.datetime.utcnow(),
"initial": random.randint(0, 10), "initial": random.randint(0, 10),
"processing": random.randint(0, 10), "processing": random.randint(0, 10),
"verifying": random.randint(0, 10), "verifying": random.randint(0, 10),
"completed": random.randint(0, 10), "completed": random.randint(0, 10)
"actions": member_actions_data
} }
logger.info(f"Member Actions Error: {action_data}") logger.info(f"Member Actions Error: {action_data}")