Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

list benchmarks bugfix

  • Loading branch information...
commit f41a5fcf6d87b65edb27de0c8b988706ce9bd4e0 1 parent 78a1c76
@ceari authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  edacc/views/accounts.py
View
3  edacc/views/accounts.py
@@ -682,7 +682,6 @@ def list_benchmarks(database, user_id=None):
if not file in uploaded_files: uploaded_files[file] = list()
files = os.listdir(os.path.join(directory, file, user_dir))
files_full_path = [os.path.join(directory, file, user_dir, f) for f in files]
- if not file in uploaded_files: uploaded_files[file] = list()
uploaded_files[file] += zip(files, [time.ctime(os.path.getmtime(f)) for f in files_full_path])
return render('/accounts/list_benchmarks.html', database=database,
@@ -705,7 +704,7 @@ def admin_list_benchmarks(database):
files = os.listdir(os.path.join(directory, file, user_dir))
files_full_path = [os.path.join(directory, file, user_dir, f) for f in files]
files_sizes = [os.stat(f).st_size for f in files_full_path]
- uploaded_files[file] = zip(files, [time.ctime(os.path.getmtime(f)) for f in files_full_path], [user_dir] * len(files), files_sizes)
+ uploaded_files[file] += zip(files, [time.ctime(os.path.getmtime(f)) for f in files_full_path], [user_dir] * len(files), files_sizes)
return render('/accounts/admin_list_benchmarks.html', database=database,
db=db, uploaded_files=uploaded_files)
Please sign in to comment.
Something went wrong with that request. Please try again.