Sorted mate table
This commit is contained in:
20
templates/about.html
Normal file
20
templates/about.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n static %}
|
||||
{% load humanize %}
|
||||
{% block head %}
|
||||
<script type="text/javascript" src="{{ STATIC_URL }}javascript/tippy.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav %}
|
||||
{% include "nav.html" with ls=ls season=season %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div id="content-main">
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
<h2>Über TipPy</h2>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -431,6 +431,11 @@ def matchday(request, ls, season, matchday, template_name='md.html'):
|
||||
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)
|
||||
|
||||
# get the newest blogposts
|
||||
|
||||
Reference in New Issue
Block a user