mirror of
https://github.com/Doctorado-ML/beflask.git
synced 2025-08-16 07:35:51 +00:00
Fix Excel files
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import os
|
||||
from benchmark.utils import Files
|
||||
from flask import (
|
||||
Blueprint,
|
||||
render_template,
|
||||
@@ -24,6 +26,10 @@ def index():
|
||||
benchmarks = Benchmark.query.all()
|
||||
else:
|
||||
benchmarks = [current_user.benchmark]
|
||||
for benchmark in benchmarks:
|
||||
os.chdir(benchmark.folder)
|
||||
benchmark.num_files = len(Files.get_all_results(hidden=False))
|
||||
os.chdir(current_user.benchmark.folder)
|
||||
else:
|
||||
benchmarks = []
|
||||
return render_template("index.html", benchmarks=benchmarks)
|
||||
|
Reference in New Issue
Block a user