Skip to content

Commit e86d604

Browse files
committedMar 9, 2023
v0.1.3 Fix transform issue
1 parent e1224d9 commit e86d604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎dgp/genera/transform/transform.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def set_consts(self, fieldOptions):
206206
return Flow(*steps)
207207

208208
def flow(self):
209-
if len(self.errors) == 0 and self.config.get(CONFIG_PRIMARY_KEY) and self.config.get(CONFIG_MODEL_MAPPING):
209+
if len(self.errors) == 0 and self.config.get(CONFIG_PRIMARY_KEY) is not None and self.config.get(CONFIG_MODEL_MAPPING) is not None:
210210
primaryKey = [self.ct_to_fn(f) for f in self.config.get(CONFIG_PRIMARY_KEY)]
211211

212212
fieldOptions = {}

0 commit comments

Comments
 (0)
Please sign in to comment.