Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Grain-Yu committed Nov 30, 2023
1 parent 50a444d commit a1a7eb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions sql/engines/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,10 +882,10 @@ def get_review_status_summary(self, checksum):
rows = []
row = {
"checksum": checksum,
"reviewed_by": review_summary[0],
"reviewed_on": review_summary[1],
"comments": review_summary[2],
"reviewed_status": review_summary[3],
"reviewed_by": review_summary[0][0],
"reviewed_on": review_summary[0][1],
"comments": review_summary[0][2],
"reviewed_status": review_summary[0][3],
}
rows.append(row)
query_result.rows = rows
Expand Down
8 changes: 3 additions & 5 deletions sql/templates/sqlreview.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ <h4 class="modal-title">编辑详情</h4>
$("#edit-review").modal('show');
//编辑详情
$("#editRevBtn").unbind("click").click(function () {
var dt = new Date();
var date = dt.getDate();
var time = dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds();
currenttime = date + time;
var dt = new Date(+new Date()+8*3600*1000);
currenttime = dt.toISOString().slice(0, 19).replace('T', ' ');
$.ajax({
type: "post",
url: "/sqlreview/edit/",
Expand All @@ -160,7 +158,7 @@ <h4 class="modal-title">编辑详情</h4>
reviewed_by: 'admin',
reviewed_on: currenttime,
comments: $("#comments").val(),
reviewed_status: $("reviewed-status").val(),
reviewed_status: $("#reviewed-status").val(),
},
complete: function () {
},
Expand Down

0 comments on commit a1a7eb6

Please sign in to comment.