Skip to content
Snippets Groups Projects
Commit cdf0c8a8 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-657: python3 sorting

parent bc4c3b2f
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@
import logging
import sys
import os, os.path
from functools import cmp_to_key
from datetime import datetime, timedelta
from lofar.common.util import humanreadablesize
from lofar.common import isDevelopmentEnvironment
......@@ -79,7 +80,7 @@ def index():
return 0
sorted_items = sorted(list(report.items()), cmp = compare_func)
sorted_items = sorted(list(report.items()), key=cmp_to_key(compare_func))
nr_of_jobs_in_queue = 0
for status_dict in list(report.values()):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment