reports were broken when there were running backups do to lack of complete logs

parent 6dae8af7
......@@ -538,8 +538,10 @@ class Burp(BUIbackend):
cls = []
bkp = []
for cli in clients:
if not cli:
continue
client = self.get_client(cli['name'])
if not client:
if not client or not client[-1]:
continue
stats = self.get_backup_logs(client[-1]['number'], cli['name'])
os = stats['os'] if 'os' in stats else "unknown"
......
......@@ -889,7 +889,7 @@ class Burp(Burp1):
if WITH_GEVENT:
gevent.joinall(threads)
ret = [x.value for x in threads]
ret = [x.value for x in threads if x.value]
# Here we need to reverse the array so the backups are sorted by num
# ASC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment