Skip to content

Commit

Permalink
fix: flags submitted after game ended still can get bloods
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 11, 2022
1 parent 8f1f34e commit 55043df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GZCTF/Repositories/InstanceRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public async Task<CheatCheckInfo> CheckCheat(Submission submission, Cancellation

bool firstTime = !instance.IsSolved && updateSub.Status == AnswerResult.Accepted;

if (firstTime)
if (firstTime && submission.Game.EndTimeUTC > submission.SubmitTimeUTC)
{
instance.IsSolved = true;
updateSub.Challenge.AcceptedCount++;
Expand Down

0 comments on commit 55043df

Please sign in to comment.