Skip to content

Commit

Permalink
make sure compilers and versions are sorted
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Nov 8, 2021
1 parent df256ed commit c4310db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spackmon/apps/main/views/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ def package_matrix(request, pkg=None, arch=None):
)
compilers = list(set(chain(compilers, failed_compilers)))

# Ensure we are sorted!
versions.sort()
compilers.sort()

# Convert to a data frame to do summary stats (yes this is actually faster)
df = pandas.DataFrame(list(specs.values()))
df = df.append(pandas.DataFrame(list(failed_concrete.values())))
Expand Down Expand Up @@ -512,7 +516,6 @@ def package_matrix(request, pkg=None, arch=None):
)
rows.append(row)


return render(
request,
"matrix/package.html",
Expand Down

0 comments on commit c4310db

Please sign in to comment.