Skip to content

Commit

Permalink
chore: Rename text to flag for flag post
Browse files Browse the repository at this point in the history
  • Loading branch information
mradigen committed Nov 25, 2023
1 parent 97a4dbf commit 99d204c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pwncore/routes/ctf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


class Flag(BaseModel):
text: str
flag: str


@router.get("/list")
Expand All @@ -51,7 +51,7 @@ async def flag_post(ctf_id: int, flag: Flag, response: Response, jwt: RequireJwt
return {"msg_code": config.msg_codes["ctf_solved"]}

check_solved = await Container.exists(
team_id=team_id, flag=flag.text, problem_id=ctf_id
team_id=team_id, flag=flag.flag, problem_id=ctf_id
)
if check_solved:
await SolvedProblem.create(team_id=team_id, problem_id=ctf_id)
Expand Down

0 comments on commit 99d204c

Please sign in to comment.