Skip to content

Commit

Permalink
AVB-26 TicketIntegration __eq__ in diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvinas9 committed Jul 3, 2023
1 parent 1c5745a commit 081906b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion livestyled/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.4.4'
__version__ = '1.4.5'
5 changes: 5 additions & 0 deletions livestyled/models/ticket_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ def create_new(
def __repr__(self):
return '<TicketIntegration(id={self.id!r})>'.format(self=self)

def __eq__(self, other):
if isinstance(other, TicketIntegration):
return self.id == other.id
return False

def diff(self, other):
differences = {}
fields = (
Expand Down

0 comments on commit 081906b

Please sign in to comment.