From 72be0aebdbe6837337c862cb78696935f312da1e Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 6 Oct 2016 21:04:19 +0200 Subject: [PATCH 1/2] Sorted mate table --- templates/about.html | 20 ++++++++++++++++++++ tipp/views.py | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 templates/about.html diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..7511608 --- /dev/null +++ b/templates/about.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% load i18n static %} +{% load humanize %} +{% block head %} + +{% endblock %} + +{% block nav %} +{% include "nav.html" with ls=ls season=season %} +{% endblock %} + +{% block body %} +
+
+
+

Über TipPy

+ +
+
+
diff --git a/tipp/views.py b/tipp/views.py index 6c2e048..efe5d7a 100644 --- a/tipp/views.py +++ b/tipp/views.py @@ -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) From a221c0e37d44055d292e0bf1acdb7c9a2c8182bd Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 23 Nov 2016 18:48:33 +0100 Subject: [PATCH 2/2] Fixed iss#07 (About) --- templates/about.html | 9 +++++++++ templates/nav.html | 2 +- tipp/views.py | 4 ++++ tippy/__init__.py | 1 + tippy/urls.py | 1 + 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/templates/about.html b/templates/about.html index 7511608..aefb7d6 100644 --- a/templates/about.html +++ b/templates/about.html @@ -14,7 +14,16 @@

Über TipPy

+

TipPy ist eine responsive Web-Applikation für Tippspiele mit + einem "Mobile-First-Ansatz" . Unterstützt werden alle auf + OpenLigaDB bereitgestellten + Sportarten und Ligen. + TipPy wurde in Python umgesetzt + und benutzt die Frameworks Django + als Web Application Framework, und Twitters + Bootstrap für CSS.

+{% endblock %} diff --git a/templates/nav.html b/templates/nav.html index 7bbe514..2fff481 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -9,7 +9,7 @@ - TipPy 1.0 + TipPy 1.0