Skip to content

Commit

Permalink
Changed object to dict conversion to included 'false' Boolean values;…
Browse files Browse the repository at this point in the history
… Only skip values which are actually 'None'
  • Loading branch information
PhilippRieth authored Jan 12, 2024
1 parent c3086ad commit 45f6341
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 45f6341

Please sign in to comment.