Skip to content

Commit

Permalink
fix: tweaked command to_dict() to put session first
Browse files Browse the repository at this point in the history
This makes it match the declarations but is purely decorative
  • Loading branch information
nigelm committed Feb 14, 2022
1 parent 81ae17e commit 4024d50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions broadworks_ocip/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,7 @@ def to_dict(self) -> Dict[str, Any]:
suite at present.
"""
elements = super().to_dict() # pick up the base object data
elements["session_id"] = self.session_id
return elements
return {"session_id": self.session_id, **elements}


class OCIRequest(OCICommand):
Expand Down

0 comments on commit 4024d50

Please sign in to comment.