From ed037a776223786380b56ee39f4250789800a291 Mon Sep 17 00:00:00 2001 From: Charan N Naik Date: Sat, 14 Feb 2026 15:15:35 +0530 Subject: [PATCH 1/2] "fix return bug" --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 9ee0acf..f9e31db 100644 --- a/app/main.py +++ b/app/main.py @@ -26,7 +26,7 @@ def health_check(): @app.get("/sum") def compute_sum(a: int = Query(...), b: int = Query(...)): - return {"result": a * b} + return {"result": a + b} def format_profile(data): From c6321ff31017942b7a70c8a3a35b90985dd61dc1 Mon Sep 17 00:00:00 2001 From: Charan N Naik Date: Sat, 14 Feb 2026 15:19:19 +0530 Subject: [PATCH 2/2] "unused math import remove" --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index f9e31db..719eaac 100644 --- a/app/main.py +++ b/app/main.py @@ -5,7 +5,7 @@ from app.models import ProfileCreate, ProfileResponse from app.store import profile_store -import math + app = FastAPI(title="FastAPI Workshop", version="0.1.0")