Compare commits
No commits in common. "v4" and "main" have entirely different histories.
9
main.py
9
main.py
@ -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
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
functions-framework==1.4.3
|
|
||||||
markupsafe==2.0.1
|
|
||||||
Loading…
Reference in New Issue
Block a user