

def get_backup_logs(self, number, client, forward=False, agent=None):
    'See :func:`burpui.misc.backend.interface.BUIbackend.get_backup_logs`'
    ret = {
        
    }
    if ((not client) or (not number)):
        return ret
    query = self.status('c:{0}:b:{1}\n'.format(client, number))
    if (not query):
        return ret
    try:
        logs = query['clients'][0]['backups'][0]['logs']['list']
    except KeyError as e:
        self._logger('warning', 'No logs found')
        return ret
    if ('backup_stats' in logs):
        ret = self._parse_backup_stats(number, client, forward)
    ret['encrypted'] = False
    if (('files_enc' in ret) and (ret['files_enc']['total'] > 0)):
        ret['encrypted'] = True
    return ret

dataset/ETHPy150Open ziirish/burp-ui/burpui/misc/backend/burp2.py Burp.get_backup_logs/original