fix mistake

master
James Sigurðarson 2016-08-03 22:09:55 +00:00
parent f4c4e92fa1
commit c91b61bb60
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def submit_flag(chall, user, team, flag):
raise ValidationError("Your team has already solved this problem!")
elif not chall.enabled:
raise ValidationError("This challenge is disabled.")
elif flag.strip().lower() != chall.flag.strip.lower():
elif flag.strip().lower() != chall.flag.strip().lower():
ChallengeFailure.create(user=user, team=team, challenge=chall, attempt=flag, time=datetime.now())
return "Incorrect flag"
else: