Skip to content

Commit

Permalink
correction in class methods in UserRelation
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri-yatsenko committed Dec 22, 2017
1 parent 881d596 commit abb4356
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datajoint/user_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ def __getattribute__(cls, name):
return (cls().__getattribute__(name) if name in supported_class_attrs
else super().__getattribute__(name))

def __len__(cls):
return len(cls())

def __and__(cls, arg):
return cls() & arg

def __sub__(cls, arg):
return cls() & arg
return cls() - arg

def __mul__(cls, arg):
return cls() * arg

def __add__(cls, arg):
return cls() + arg


class UserRelation(BaseRelation, metaclass=OrderedClass):
"""
Expand Down

0 comments on commit abb4356

Please sign in to comment.