Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
gh-20 - finished tests and fixed issues in gaffer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
m55624 committed Jun 28, 2017
1 parent 6e49c1b commit cdf1714
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 157 deletions.
8 changes: 4 additions & 4 deletions python-shell/src/gafferpy/gaffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ def to_json(self):

element_generator = {'class': self.generator_class_name}
if self.element_generator_fields is not None:
for field in self.element_generator_fields:
element_generator[field.key] = field.value
for key, value in self.element_generator_fields.items():
element_generator[key] = value
operation['elementGenerator'] = element_generator
return operation

Expand Down Expand Up @@ -518,8 +518,8 @@ def to_json(self):

element_generator = {'class': self.generator_class_name}
if self.element_generator_fields is not None:
for field in self.element_generator_fields:
element_generator[field.key] = field.value
for key, value in self.element_generator_fields.items():
element_generator[key] = value
operation['elementGenerator'] = element_generator
return operation

Expand Down
Loading

0 comments on commit cdf1714

Please sign in to comment.