mirror of
https://github.com/solero/houdini.git
synced 2024-12-24 14:33:36 +00:00
Add is_award check to Item model
This commit is contained in:
parent
842f5684ee
commit
92ac358bb6
@ -42,6 +42,9 @@ class Item(db.Model):
|
|||||||
def is_photo(self):
|
def is_photo(self):
|
||||||
return self.type == 9
|
return self.type == 9
|
||||||
|
|
||||||
|
def is_award(self):
|
||||||
|
return self.type == 10
|
||||||
|
|
||||||
|
|
||||||
class PenguinItem(db.Model):
|
class PenguinItem(db.Model):
|
||||||
__tablename__ = 'penguin_item'
|
__tablename__ = 'penguin_item'
|
||||||
|
Loading…
Reference in New Issue
Block a user