lbw_review_system_V2 / final_decision.py
dschandra's picture
Create final_decision.py
44e38ff verified
def compare_decisions(umpire, drs):
same = umpire["decision"] == drs["drs_decision"]
return {
"confirmed": same,
"final_decision": umpire["decision"] if same else drs["drs_decision"],
}