Skip to content

Commit 9115b4b

Browse files
Apply suggestions from code review
Co-authored-by: Martin Breuss <[email protected]>
1 parent 8533377 commit 9115b4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastapi-python-web-apis/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ async def home():
6969
return {"message": "Welcome to the Randomizer API"}
7070

7171

72-
@app.get("/random/{max_value}")
73-
async def get_random_number(max_value: int, tags=["Random Playground"]):
72+
@app.get("/random/{max_value}", tags=["Random Playground"])
73+
async def get_random_number(max_value: int):
7474
return {"max": max_value, "random_number": random.randint(1, max_value)}
7575

7676

0 commit comments

Comments
 (0)