update_process_json
This commit is contained in:
parent
d87ba48526
commit
3c474ea805
|
@ -18,7 +18,8 @@ class PmService:
|
|||
'count':i['count'],
|
||||
'count_real':i['count_real'],
|
||||
'count_ok':i['count_ok'],
|
||||
'rate': round((i['count_ok']/i['count_real'])*100,2) if i['count_real'] > 0 else 0
|
||||
'count_notok':i['count_notok'],
|
||||
'rate': round((i['count_ok']/(i['count_ok']+i['count_notok']))*100,2) if (i['count_ok']+i['count_notok']) > 0 else 0
|
||||
}
|
||||
plan.process_json = ret
|
||||
plan.save()
|
||||
|
|
Loading…
Reference in New Issue