Skip to content

Commit

Permalink
Bugfix for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsekar committed Apr 29, 2018
1 parent a90f9be commit f127b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wc_rules/chem2.py
Expand Up @@ -25,11 +25,11 @@ def _verify_site_molecule_compatibility(self,molecule=None):

def _get_number_of_source_relations(self, relation_type=None):
if self.site_relations_sources is not None:
return len(self.site_relations_sources.get(_type=relation_type))
return len(self.site_relations_sources.get(__type=relation_type))
return 0
def _get_number_of_target_relations(self, relation_type=None):
if self.site_relations_targets is not None:
return len(self.site_relations_targets.get(_type=relation_type))
return len(self.site_relations_targets.get(__type=relation_type))
return 0

class SiteRelation(entity.Entity):
Expand Down

0 comments on commit f127b26

Please sign in to comment.