Compare commits
2 Commits
87efa03ed0
...
f56322bd6e
Author | SHA1 | Date |
---|---|---|
Danhia | f56322bd6e | |
Danhia | 506eb54d49 |
|
@ -188,7 +188,7 @@ def profile(request, user_name):
|
||||||
for s in solves.reverse():
|
for s in solves.reverse():
|
||||||
somme += s.ctf.points
|
somme += s.ctf.points
|
||||||
solved.append([s.flag_date.timestamp() * 1000,somme])
|
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,
|
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})
|
'rank': rank, 'score' : somme, 'member' : member, 'cats':cats, 'created':created})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue