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

Commit

Permalink
fix #552
Browse files Browse the repository at this point in the history
  • Loading branch information
40huo committed Sep 6, 2017
1 parent 8bbe66e commit 62bc3a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions cobra/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ def summary():
key=key)

status_url = 'http://{host}:{port}/api/status'.format(host=running_host, port=running_port)
logger.critical(status_url)
post_data = {
'key': key,
'sid': a_sid,
Expand Down Expand Up @@ -340,7 +339,6 @@ def summary():
elif len(split_target) == 2:
target, branch = target_str, 'master'
else:
logger.critical('[API] Target url exception: {u}'.format(u=target_str))
target, branch = target_str, 'master'
still_running[s_sid] = {'target': target,
'branch': branch}
Expand Down Expand Up @@ -373,7 +371,6 @@ def summary():
elif len(split_target) == 2:
target, branch = target_str, 'master'
else:
logger.critical('Target url exception: {u}'.format(u=target_str))
target, branch = target_str, 'master'

target_info.update({
Expand Down
2 changes: 1 addition & 1 deletion cobra/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import csv
import json
import os
from codecs import open,BOM_UTF8
from codecs import open, BOM_UTF8

from prettytable import PrettyTable

Expand Down
6 changes: 3 additions & 3 deletions cobra/templates/asset/js/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ $(function () {
$('.commit-author').text('@' + data.commit_author);
$('.commit-time').text('@' + data.commit_time);
$('.v-level').text(score2level[data.level]);
$('.v-type').text(data.rule_name);
$('.v-type').text('CVI-' + data.id + ' ' + data.rule_name);
$('.v-solution').text(data.solution);
// $('.v-rule').text(data.match_result);
}
Expand Down Expand Up @@ -341,8 +341,8 @@ $(function () {
' data-start="1" data-line="1">' +
'<strong>MVE-' + (i + 1) + '</strong><br><span>' + list[i].file_path + line + '</span><br>' +
'<span class="issue-information">' +
'<small>' +
' => ' + list[i].commit_time +
'<small>' + 'CVI-' + list[i].id +
' => ' + list[i].rule_name +
'</small>' +
'</span>' +
'</li>';
Expand Down

0 comments on commit 62bc3a2

Please sign in to comment.