forked from 42CTF/website
Compare commits
No commits in common. "ec61f06be00dcde4db495706673ce30aeeb7fb04" and "7b9dfad15d2cd78f9861275679a7d8129158e013" have entirely different histories.
ec61f06be0
...
7b9dfad15d
|
@ -166,9 +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:
|
if ev.team_size == 1 and CTF_flags.objects.filter(user=request.user, ctf=ctf_info):
|
||||||
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)
|
||||||
for s in solved_list:
|
for s in solved_list:
|
||||||
|
|
Loading…
Reference in New Issue