def customers_stats(self): """ Returns customer statistics. **Example**:: { "customer_stats": { "pending_prod_private": 0, "production": 2, "pending_prod_private_blocked": 0, "pending_prod": 0, "total": 5, "private_deleted": 1, "production_private_blocked": 0, "entity_deleted": 0, "total_test": 3, "pending_prod_entity_blocked": 0, "production_private": 2, "test_private_blocked": 1, "production_entity_blocked": 0, "test_entity_blocked": 0, "production_entity": 0, "test_private": 2, "test_entity": 1, "pending_prod_entity": 0, "total_blocked": 1, "total_deleted": 1 } } """ return {"customer_stats": Customer.customers_stat()}
def stat(self): return Customer.customers_stat()