add row limit

This commit is contained in:
herby2212 2021-03-15 19:29:04 +01:00
commit 2949fd4079

View file

@ -942,7 +942,7 @@ class DataFactory(object):
'stat_type': sort_type,
'stat_title': 'Most Active Libraries',
'rows': session.mask_session_info(
sorted(top_libraries, key=lambda k: k[sort_type], reverse=True),
sorted(top_libraries, key=lambda k: k[sort_type], reverse=True)[:10],
mask_metadata=False)
})