fixed some issues regarding template

This commit is contained in:
2016-06-10 17:54:59 +02:00
parent 538f6262fd
commit c02f137c0b
2 changed files with 3 additions and 3 deletions

View File

@@ -286,12 +286,12 @@ def matchday(request, ls, season, matchday, template_name='md.html'):
"""filter duplicates """
d = False
for item in tipp_mates:
if r.user.first_name == item['mate']:
if r.user == item['mate']:
d = True
if d is False:
tipp_mates.append({
'mate': r.user.first_name,
'mate': r.user,
'tipps': [],
'sum_score': 0
})