Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Commit

Permalink
Fixed alias and identifier comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSputnik committed Dec 6, 2015
1 parent 7dcb8ff commit 568eb0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bbschema/entity_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,16 @@ class EntityData(Base):

def __eq__(self, other):
# Assume that other is an EntityData
if len(self.aliases) != len(other.aliases):
return False

for left, right in zip(self.aliases, other.aliases):
if left != right:
return False

if len(self.identifiers) != len(other.identifiers):
return False

for left, right in zip(self.identifiers, other.identifiers):
if left != right:
return False
Expand Down

0 comments on commit 568eb0d

Please sign in to comment.