add - summary total sharings of brokers on dashboard - v2
This commit is contained in:
@@ -139,7 +139,8 @@ class TransactionDashboardService:
|
||||
share_totals[name]["total_price"] += item["total_price"]
|
||||
share_totals[name]["count"] += item["count"]
|
||||
|
||||
share_totals = dict(share_totals)
|
||||
dict_share_total = dict(share_totals)
|
||||
share_totals = [{"name": share, **dict_share_total[share]} for share in list(share_totals)]
|
||||
|
||||
return {
|
||||
"transaction_summary": transaction_stats,
|
||||
|
||||
Reference in New Issue
Block a user