Add is_award check to Item model

This commit is contained in:
Ben 2019-08-05 18:57:14 +01:00
parent 842f5684ee
commit 92ac358bb6

View File

@ -42,6 +42,9 @@ class Item(db.Model):
def is_photo(self):
return self.type == 9
def is_award(self):
return self.type == 10
class PenguinItem(db.Model):
__tablename__ = 'penguin_item'