From fdc3ebad96fbd7ab3f12439503009c368494831c Mon Sep 17 00:00:00 2001 From: joe-arriaga Date: Wed, 6 Mar 2019 16:42:58 -0800 Subject: [PATCH] Update policy.py --- 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 7f2e93a..d402713 100644 --- a/back/backend/policy.py +++ b/back/backend/policy.py @@ -145,7 +145,7 @@ def departure_date_limit_rule(report, fields): planning_section.add_rule(title="Departure date limit", rule=departure_date_limit_rule) def economy_class_rule(report, fields): - if not fields[economy_class]: + if not fields['economy_class']: return "Only economy or coach class tickets are within policy." planning_section.add_rule(title="Economy class check", rule=economy_class_rule)