Skip to content

Commit

Permalink
Merge pull request #27 from PhilippRieth/master
Browse files Browse the repository at this point in the history
Changed object to dict conversion to included 'false' Boolean values
  • Loading branch information
markciecior authored Jan 25, 2024
2 parents c3086ad + 45f6341 commit 9714c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cw_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _get(self):
def _create(self, a_object):
# Ideally take the_item and submit that as the user_data
try:
clean_dict = {k: v for k, v in a_object.__dict__.items() if v}
clean_dict = {k: v for k, v in a_object.__dict__.items() if v is not None}
except Exception as e:
print(repr(e))
return False
Expand Down

0 comments on commit 9714c98

Please sign in to comment.