forked from 42CTF/website
Merge pull request 'hotfix for solo events' (#63) from Danhia/website:fix-event into main
Reviewed-on: 42CTF/website#63
This commit is contained in:
commit
ec61f06be0
|
@ -166,8 +166,9 @@ def submit_event_flag(request, event_slug, chall_slug):
|
|||
if ev.team_size > 1 and player.team is None:
|
||||
response['Location'] += '?NoTeam=1'
|
||||
return response
|
||||
if ev.team_size == 1 and CTF_flags.objects.filter(user=request.user, ctf=ctf_info):
|
||||
flagged = True
|
||||
if ev.team_size == 1:
|
||||
if CTF_flags.objects.filter(user=request.user, ctf=ctf_info):
|
||||
flagged = True
|
||||
else:
|
||||
solved_list = CTF_flags.objects.filter(ctf=ctf_info)
|
||||
for s in solved_list:
|
||||
|
|
Loading…
Reference in New Issue