empty subscriptio
This commit is contained in:
@@ -160,18 +160,18 @@ class OfficeDashboardService(BaseService):
|
||||
# "recent_transactions": recent_transactions_data
|
||||
# }
|
||||
subscription = MembersProducts.get_dash_recent_subscription(15)
|
||||
|
||||
subscription_data = [{
|
||||
'id': t.id,
|
||||
'uid': t.uid,
|
||||
'product_id': t.product_id,
|
||||
'internal_url': t.internal_url,
|
||||
'external_url': t.external_url,
|
||||
'dns_group': t.dns_group,
|
||||
'status': t.status,
|
||||
'added': t.added,
|
||||
'updated': t.updated
|
||||
} for t in subscription]
|
||||
if subscription:
|
||||
subscription_data = [{
|
||||
'id': t.id,
|
||||
'uid': t.uid,
|
||||
'product_id': t.product_id,
|
||||
'internal_url': t.internal_url,
|
||||
'external_url': t.external_url,
|
||||
'dns_group': t.dns_group,
|
||||
'status': t.status,
|
||||
'added': t.added,
|
||||
'updated': t.updated
|
||||
} for t in subscription]
|
||||
|
||||
dashboard_data = {
|
||||
"subscription":subscription_data,
|
||||
|
||||
Reference in New Issue
Block a user