Commit f85bdc55 authored by Kento HASEGAWA's avatar Kento HASEGAWA

Fix small bugs in UI

parent a350ed9a
......@@ -115,13 +115,14 @@ def post():
_qname = request.form["qname"]
_answer = request.form["answer"]
_client = request.form["client"]
receive_time = datetime.datetime.now()
receive_time_str = receive_time.strftime("%Y%m%d%H%M%S")
dat = {
"req_id": request.form['req_id'],
"client": request.form['client'],
"client": _client,
"answer": _answer,
"cputime": request.form['cputime'],
"timestamp": receive_time.strftime("%Y/%m/%d %H:%M:%S")
......
......@@ -121,16 +121,6 @@ $(function(){
}).done(function(d){
$("#client-control-pane").html("");
$("#client-control-pane").html(d);
$.ajax({
type: "GET",
dataType: "json",
url: "/get_clients"
}).done(function(d){
pynqClients = d;
pm = PynqManager(pynqClients);
pm.getStatus();
});
});
}
......@@ -162,4 +152,13 @@ $(function(){
refresh_question_table();
$.ajax({
type: "GET",
dataType: "json",
url: "/get_clients"
}).done(function(d){
pynqClients = d;
pm = PynqManager(pynqClients);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment