Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

Commit 62bc3a2

Browse files
committed
fix #552
1 parent 8bbe66e commit 62bc3a2

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

cobra/api.py

-3
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ def summary():
312312
key=key)
313313

314314
status_url = 'http://{host}:{port}/api/status'.format(host=running_host, port=running_port)
315-
logger.critical(status_url)
316315
post_data = {
317316
'key': key,
318317
'sid': a_sid,
@@ -340,7 +339,6 @@ def summary():
340339
elif len(split_target) == 2:
341340
target, branch = target_str, 'master'
342341
else:
343-
logger.critical('[API] Target url exception: {u}'.format(u=target_str))
344342
target, branch = target_str, 'master'
345343
still_running[s_sid] = {'target': target,
346344
'branch': branch}
@@ -373,7 +371,6 @@ def summary():
373371
elif len(split_target) == 2:
374372
target, branch = target_str, 'master'
375373
else:
376-
logger.critical('Target url exception: {u}'.format(u=target_str))
377374
target, branch = target_str, 'master'
378375

379376
target_info.update({

cobra/export.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import csv
1515
import json
1616
import os
17-
from codecs import open,BOM_UTF8
17+
from codecs import open, BOM_UTF8
1818

1919
from prettytable import PrettyTable
2020

cobra/templates/asset/js/report.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ $(function () {
108108
$('.commit-author').text('@' + data.commit_author);
109109
$('.commit-time').text('@' + data.commit_time);
110110
$('.v-level').text(score2level[data.level]);
111-
$('.v-type').text(data.rule_name);
111+
$('.v-type').text('CVI-' + data.id + ' ' + data.rule_name);
112112
$('.v-solution').text(data.solution);
113113
// $('.v-rule').text(data.match_result);
114114
}
@@ -341,8 +341,8 @@ $(function () {
341341
' data-start="1" data-line="1">' +
342342
'<strong>MVE-' + (i + 1) + '</strong><br><span>' + list[i].file_path + line + '</span><br>' +
343343
'<span class="issue-information">' +
344-
'<small>' +
345-
' => ' + list[i].commit_time +
344+
'<small>' + 'CVI-' + list[i].id +
345+
' => ' + list[i].rule_name +
346346
'</small>' +
347347
'</span>' +
348348
'</li>';

0 commit comments

Comments
 (0)