From 8743c6e8d89a3a024a7b9af2cec3ec7435262f84 Mon Sep 17 00:00:00 2001 From: Pier Carlo Chiodi Date: Wed, 15 Feb 2017 22:12:14 +0100 Subject: [PATCH] fix issue with transformations --- pierky/p2es/readers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pierky/p2es/readers.py b/pierky/p2es/readers.py index 7f91493..f6f4ed8 100644 --- a/pierky/p2es/readers.py +++ b/pierky/p2es/readers.py @@ -51,7 +51,7 @@ def apply_transformation(self, dic, tr): dic[action['Name']] = new_val elif action_type == 'AddFieldLookup': - if action['LookupFieldName'] not in dic: + if action['LookupFieldName'] in dic: new_val = None if str(dic[action['LookupFieldName']]) in action['LookupTable']: