diff --git a/app/api/services/account.py b/app/api/services/account.py index b20d1b2..61d3e2a 100644 --- a/app/api/services/account.py +++ b/app/api/services/account.py @@ -51,29 +51,29 @@ class AccountService(BaseService): member_actions = MembersActions.get_recent_member_actions(member_data.id) member_actions_data = [] - product_data =[] for t in member_actions: - product_data.append({ + member_actions_data.append({ 'id': t.id, 'uid': t.uid, - 'product_id': t.product_id, - 'name': t.name, - 'description': t.description, + 'member_id': t.member_id, + 'member_uid': t.member_uid, + 'action_label': t.action_label, + 'action_name': t.action_name, + 'status_description': t.status_description, 'status': t.status, 'added': t.added, - 'updated': t.updated, - 'banner': t.banner + 'updated': t.updated }) + action_data = { "recent_actions": member_actions_data, "last_update": datetime.datetime.utcnow(), "initial": random.randint(0, 10), "processing": random.randint(0, 10), "verifying": random.randint(0, 10), - "completed": random.randint(0, 10), - "actions": member_actions_data + "completed": random.randint(0, 10) } logger.info(f"Member Actions Error: {action_data}")