Commit f85bdc55 authored by Kento HASEGAWA's avatar Kento HASEGAWA
Browse files

Fix small bugs in UI

parent a350ed9a
Loading
Loading
Loading
Loading
+2 −1
Changes for comm/server/main.py: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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")
+9 −10
Changes for comm/server/static/js/pynq-manager.js: 9 added lines, 10 removed lines.
Original line number Diff line number Diff line
@@ -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);
    });

});