Merge pull request 'Fix duplicates in created challenges' (#59) from Danhia/website:fix-challenges into main
Reviewed-on: #59
This commit is contained in:
commit
f56322bd6e
|
@ -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