From 506eb54d497e2815e9ded6ac750fa640c90be02e Mon Sep 17 00:00:00 2001 From: Danhia Date: Sat, 28 May 2022 10:53:46 +0200 Subject: [PATCH] fixed duplicates in created challenges --- src/accounts/views/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounts/views/views.py b/src/accounts/views/views.py index 8fa67ac..a08bddd 100644 --- a/src/accounts/views/views.py +++ b/src/accounts/views/views.py @@ -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})