Sorted mate table
This commit is contained in:
@@ -430,6 +430,11 @@ def matchday(request, ls, season, matchday, template_name='md.html'):
|
||||
mate['tipps'].append(u'\u2714')
|
||||
except Exception as e:
|
||||
mate['tipps'].append(u'\u2717')
|
||||
|
||||
""" sort items in mandant_dict by score """
|
||||
mandant_dict[mandant] = sorted(mandant_dict[mandant],
|
||||
key=lambda k: k['sum_score'], reverse=True)
|
||||
|
||||
|
||||
matches.append(item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user