Compare commits

..

No commits in common. "v4" and "main" have entirely different histories.
v4 ... main

3 changed files with 2 additions and 12 deletions

View File

@ -1 +1,2 @@
# python hello-world
# c24f657e7ecb429d966a5110f6fc4455

View File

@ -1,9 +0,0 @@
def calculate_final_score(request):
data = request.get_json(silent=True) or {}
t = data.get("taskCompletionRate")
c = data.get("skillCommunication")
l = data.get("skillLeadership")
if not all(isinstance(x, (int, float)) for x in [t, c, l]):
return {"error": "All inputs must be numbers."}, 400
skill = (c + l) / 2
return {"finalScore": 0.6 * t + 0.4 * skill}, 200

View File

@ -1,2 +0,0 @@
functions-framework==1.4.3
markupsafe==2.0.1