From 7ea6773bd7a3c4137d8dc7c67700593aaaa08445 Mon Sep 17 00:00:00 2001 From: Alexander Sokol Date: Mon, 18 Nov 2024 13:01:39 -0500 Subject: [PATCH] Fix by Shih-Hau Tan to the leg currency assignment. (cherry picked from commit 5d0628cd141543c164c011292ae48015138d0933) --- cl/hackathon/one_step_solution.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cl/hackathon/one_step_solution.py b/cl/hackathon/one_step_solution.py index ba7e82df..f4c4d922 100644 --- a/cl/hackathon/one_step_solution.py +++ b/cl/hackathon/one_step_solution.py @@ -100,9 +100,9 @@ def score_output(self, output_: HackathonOutput) -> None: try: pay_leg_ccy = json_output.get("pay_leg_ccy") if isinstance(pay_leg_ccy, str): - output_.pay_leg_basis = pay_leg_ccy + output_.pay_leg_ccy = pay_leg_ccy except Exception as e: - output_.pay_leg_basis = str(e) + output_.pay_leg_ccy = str(e) # Pay leg payment frequency try: @@ -172,9 +172,9 @@ def score_output(self, output_: HackathonOutput) -> None: try: rec_leg_ccy = json_output.get("rec_leg_ccy") if isinstance(rec_leg_ccy, str): - output_.rec_leg_basis = rec_leg_ccy + output_.rec_leg_ccy = rec_leg_ccy except Exception as e: - output_.rec_leg_basis = str(e) + output_.rec_leg_ccy = str(e) # Receive leg payment frequency try: