This commit is contained in:
2026-06-29 06:41:18 -06:00
parent c1ec9eab8f
commit 180d75cb97
3 changed files with 10 additions and 7 deletions

View File

@@ -127,7 +127,7 @@ def check_contest_permission(check_type="details"):
return None
if self.contest.contest_type == ContestType.PASSWORD_PROTECTED_CONTEST:
if not check_contest_password(request.session.get(CONTEST_PASSWORD_SESSION_KEY, {}).get(self.contest.id), self.contest.password):
if not check_contest_password(request.session.get(CONTEST_PASSWORD_SESSION_KEY, {}).get(str(self.contest.id)), self.contest.password):
return self.error("Wrong password or password expired")
if self.contest.status == ContestStatus.CONTEST_NOT_START and check_type != "details":