action data
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user