Compare commits
2 Commits
7b9dfad15d
...
ec61f06be0
Author | SHA1 | Date |
---|---|---|
Danhia | ec61f06be0 | |
Danhia | 2233474c89 |
|
@ -166,7 +166,8 @@ def submit_event_flag(request, event_slug, chall_slug):
|
||||||
if ev.team_size > 1 and player.team is None:
|
if ev.team_size > 1 and player.team is None:
|
||||||
response['Location'] += '?NoTeam=1'
|
response['Location'] += '?NoTeam=1'
|
||||||
return response
|
return response
|
||||||
if ev.team_size == 1 and CTF_flags.objects.filter(user=request.user, ctf=ctf_info):
|
if ev.team_size == 1:
|
||||||
|
if CTF_flags.objects.filter(user=request.user, ctf=ctf_info):
|
||||||
flagged = True
|
flagged = True
|
||||||
else:
|
else:
|
||||||
solved_list = CTF_flags.objects.filter(ctf=ctf_info)
|
solved_list = CTF_flags.objects.filter(ctf=ctf_info)
|
||||||
|
|
Loading…
Reference in New Issue