

def get_clients_report(self, clients, agent=None):
    'See :func:`burpui.misc.backend.interface.BUIbackend.get_clients_report`'
    ret = {
        
    }
    cls = []
    bkp = []
    for cli in clients:
        client = self.get_client(cli['name'])
        if (not client):
            continue
        stats = self.get_backup_logs(client[(- 1)]['number'], cli['name'])
        cls.append({
            'name': cli['name'],
            'stats': {
                'windows': stats['windows'],
                'totsize': stats['totsize'],
                'total': stats['total']['total'],
            },
        })
        bkp.append({
            'name': cli['name'],
            'number': len(client),
        })
    ret = {
        'clients': cls,
        'backups': bkp,
    }
    return ret

dataset/ETHPy150Open ziirish/burp-ui/burpui/misc/backend/burp1.py Burp.get_clients_report/original