fixed duplicates in created challenges
This commit is contained in:
parent
87efa03ed0
commit
506eb54d49
|
@ -188,7 +188,7 @@ def profile(request, user_name):
|
|||
for s in solves.reverse():
|
||||
somme += s.ctf.points
|
||||
solved.append([s.flag_date.timestamp() * 1000,somme])
|
||||
created = CTF.objects.filter(author=user_obj)
|
||||
created = CTF.objects.filter(author=user_obj, event=None)
|
||||
return render(request,'accounts/profile.html', {'user':user_obj, 'solves':solves,'solved':solved,'catsDatas': catsDatas, 'pointDatas': pointDatas,
|
||||
'rank': rank, 'score' : somme, 'member' : member, 'cats':cats, 'created':created})
|
||||
|
||||
|
|
Loading…
Reference in New Issue