ADD sonar[bug with percentage]

This commit is contained in:
jasder 2021-07-13 15:53:05 +08:00
parent 263636126b
commit 229885f42c
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ json.array! @sonarqubes do |sonarqube|
json.branch_name sonarqube.branch_name
json.bug_num sonarqube.bug_num
json.loophole sonarqube.loophole
json.repetition_rate number_to_percentage(sonarqube.repetition_rate)
json.repetition_rate number_to_percentage(sonarqube.repetition_rate, precision: 1)
json.file_num sonarqube.file_num
json.created_at format_time(sonarqube.created_at)
json.updated_at format_time(sonarqube.updated_at)