From 1c8eb17e857caf6fb60c78bfda52912d5e8188b9 Mon Sep 17 00:00:00 2001 From: kououken Date: Sat, 23 Feb 2019 12:59:27 -0800 Subject: [PATCH] Fixed 'lowest_fare' rule bug. --- back/backend/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/backend/policy.py b/back/backend/policy.py index 01566e0..41f8b73 100644 --- a/back/backend/policy.py +++ b/back/backend/policy.py @@ -115,7 +115,7 @@ planning_section.add_rule(title="Fare limits", rule=fare_limit_rule) def lowest_fare_rule(report, fields): diff = fields['lowest_fare_duration'] - fields['preferred_flight_duration'] - lowest_Fare = fields['lowest_fare'] + lowest_fare = fields['lowest_fare'] maximum = 0 if diff <= 0: maximum = lowest_fare + 100