Compare commits

..

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

3 changed files with 2 additions and 12 deletions

View File

@ -1 +1,2 @@
# python hello-world # 58201933e8f64e71a9aa1821ae76e3e7

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