Merge branch 'iss07' (about)
This commit is contained in:
@@ -50,6 +50,10 @@ sys.setdefaultencoding('utf8')
|
||||
|
||||
timezoneLocal = pytz.timezone('Europe/Berlin')
|
||||
|
||||
def about(request):
|
||||
return render(request, 'about.html')
|
||||
|
||||
|
||||
@login_required
|
||||
def home(request):
|
||||
ls = get_current_ls()
|
||||
@@ -430,6 +434,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