提交 12a5853a 编写于 作者: N nicolargo

TypeError: '<' not supported between instances of 'float' and 'str' #1315

上级 53039c6e
......@@ -407,7 +407,7 @@ def sort_stats(stats, sortedby=None, reverse=True):
weighted(x[sortedby_secondary])),
reverse=reverse)
except (KeyError, TypeError):
stats.sort(key=operator.itemgetter('name'),
stats.sort(key=lambda x: x['name'] if x['name'] is not None else '~',
reverse=False)
return stats
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册