Commit 7a4ee367 authored by Kento HASEGAWA's avatar Kento HASEGAWA

Fix a bug: saving the best answer (#16)

parent 52c6bed8
......@@ -360,7 +360,7 @@ def save_best_solution():
with open(out_file_path, 'w') as fp:
fp.write(questions[qname]['answers'][_best_json]['answer'])
questions[_name]["status"] = "Saved"
questions[qname]["status"] = "Saved"
questions[qname]['best_json'] = _best_json
res = {"status": "OK"}
......
......@@ -209,6 +209,7 @@ $(function(){
data: {qname: qname}
}).done((data) => {
alert(data['status']);
location.reload();
});
});
$("#client-control-pane").find(".submit-button").eq(0).click(function(){
......
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