Skip to content

Commit 2a7076e

Browse files
rm response_description in admin.py
1 parent 3a90469 commit 2a7076e

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/pwncore/routes/admin.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ class AdminResponse(BaseModel):
6161
@atomic()
6262
@router.get("/union",
6363
response_model=AdminResponse,
64-
response_description="""Successful calculation of team points and coin updates.
65-
66-
Note: Returns msg_code 401 if authentication fails.
67-
""")
64+
)
6865
async def calculate_team_coins(
6966
response: Response, req: Request
7067
): # Inefficient, anyways will be used only once
@@ -98,12 +95,8 @@ async def calculate_team_coins(
9895

9996

10097
@router.get("/create",
101-
response_model=AdminResponse,
102-
response_description="""Database initialization with sample data.
103-
104-
Note: Returns msg_code 401 if authentication fails.
105-
This endpoint should only be used in development environment.
106-
""")
98+
response_model=AdminResponse
99+
)
107100
async def init_db(
108101
response: Response, req: Request
109102
): # Inefficient, anyways will be used only once

0 commit comments

Comments
 (0)