mirror of
https://github.com/Doctorado-ML/beflask.git
synced 2025-08-16 23:55:52 +00:00
Fix status format on ranking
This commit is contained in:
@@ -87,7 +87,12 @@ def get_benchmark(score, excel=False, html=False):
|
|||||||
if html:
|
if html:
|
||||||
move_exreport()
|
move_exreport()
|
||||||
excel_payload = (
|
excel_payload = (
|
||||||
"" if not excel else str(Path(benchmark.get_excel_file_name()).name)
|
""
|
||||||
|
if not excel
|
||||||
|
else url_for(
|
||||||
|
"results.download",
|
||||||
|
file_name=str(Path(benchmark.get_excel_file_name()).name),
|
||||||
|
)
|
||||||
)
|
)
|
||||||
html_payload = (
|
html_payload = (
|
||||||
""
|
""
|
||||||
|
@@ -35,8 +35,7 @@
|
|||||||
name="status"
|
name="status"
|
||||||
type="text"
|
type="text"
|
||||||
readonly
|
readonly
|
||||||
size="79"
|
class="bg-success text-white form-control"
|
||||||
class="bg-success text-white"
|
|
||||||
hidden>
|
hidden>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress"
|
<div class="progress"
|
||||||
@@ -112,7 +111,7 @@
|
|||||||
}
|
}
|
||||||
if (msg.message == "Done!") {
|
if (msg.message == "Done!") {
|
||||||
if ($("#excel").is(":checked")) {
|
if ($("#excel").is(":checked")) {
|
||||||
$("#excel_button").attr("onclick", "window.open('/results/download/" + msg.payload.excel +"', '_blank')");
|
$("#excel_button").attr("onclick", "window.open('" + msg.payload.excel +"', '_blank')");
|
||||||
$("#excel_button").removeAttr("hidden");
|
$("#excel_button").removeAttr("hidden");
|
||||||
}
|
}
|
||||||
if ($("#html").is(":checked")) {
|
if ($("#html").is(":checked")) {
|
||||||
|
Reference in New Issue
Block a user