mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix E731
This commit is contained in:
@@ -195,7 +195,10 @@ class Tools( BaseUIController ):
|
||||
|
||||
data = {}
|
||||
ordered_data = collections.OrderedDict()
|
||||
field_sort = lambda first, second, field: descending if data[first][field] < data[second][field] else -descending
|
||||
|
||||
def field_sort(first, second, field):
|
||||
descending if data[first][field] < data[second][field] else -descending
|
||||
|
||||
sort_functions = [
|
||||
lambda first, second: -descending if first.lower() < second.lower() else descending,
|
||||
lambda first, second: field_sort(first, second, "avg"),
|
||||
|
||||
Reference in New Issue
Block a user