Skip to content

Commit

Permalink
fix: shit
Browse files Browse the repository at this point in the history
  • Loading branch information
mradigen committed Jan 29, 2024
1 parent bd471bd commit 8483f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pwncore/routes/ctf/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ async def start_docker_container(ctf_id: int, response: Response, jwt: RequireJw
team_id = jwt["team_id"] # From JWT
team_container = await Container.filter(team=team_id, problem=ctf_id)
if team_container:
team_container, b = team_container[0], team_container[1:]
db_ports = await team_container.ports.all().values(
a, b = team_container[0], team_container[1:]
db_ports = await a.ports.all().values(
"port"
) # Get ports from DB
ports = [db_port["port"]
Expand Down

0 comments on commit 8483f4a

Please sign in to comment.