fix issue

pull/410/head
vapao 2021-08-26 12:46:43 +08:00
parent 8bf75ad9ff
commit ec90b820ba
1 changed files with 7 additions and 6 deletions

View File

@ -141,12 +141,13 @@ class RequestDetailView(View):
for item in data:
counter += 1
item = json.loads(item.decode())
if 'data' in item:
outputs[item['key']]['data'] += item['data']
if 'step' in item:
outputs[item['key']]['step'] = item['step']
if 'status' in item:
outputs[item['key']]['status'] = item['status']
if item['key'] in outputs:
if 'data' in item:
outputs[item['key']]['data'] += item['data']
if 'step' in item:
outputs[item['key']]['step'] = item['step']
if 'status' in item:
outputs[item['key']]['status'] = item['status']
data = rds.lrange(key, counter, counter + 9)
response['index'] = counter
if req.is_quick_deploy: