some refactoring and rule improvements

This commit is contained in:
Jannes Höke
2016-03-01 01:25:26 +01:00
parent 0d381ddf4d
commit b0bdbe0d0f
4 changed files with 191 additions and 123 deletions

View File

@ -56,6 +56,9 @@ class Card(object):
def __eq__(self, other):
return str(self) == str(other)
def __lt__(self, other):
return str(self) < str(other)
def get_image_link(self):
return IMAGE_PATTERN % str(self)